2,245 Posted Topics

Member Avatar for comp_sci11

This is really a question of layout more than resolution, the resolution is what causes the design error to manifest itself. Other settings such as enabling large font support cause a windows form to be drawn "bigger" than it normally would, for which there is no fix (because there shouldn't …

Member Avatar for sknake
0
425
Member Avatar for MJV

Seeing how this is an extension of the thread you started: [url]http://www.daniweb.com/forums/thread176030.html[/url] Where I provided you with the exception on the default of "unknown selection" but you didn't update the original thread or mark it solved i'm not seeing a good reason to continue to help... Rashakil Fol gave you …

Member Avatar for sknake
0
328
Member Avatar for neo.maverick

If time factor is the case then go ahead and do all of the code in the same page as the form, and you'll get it done fast. However after the first release of your code it will take twice the time to maintain the project and lead to a …

Member Avatar for serkan sendur
0
116
Member Avatar for hardikpatel
Member Avatar for chinni1

You don't "retrieve in to" something, retrieve means you get it out. So if you're putting XML in to the database, then why a temporary table? I'm not trying to critique what you are saying so much as understand. I don't really understand what you're trying to accomplish

Member Avatar for sknake
0
58
Member Avatar for samcaleb05

Please do not post duplicates. You have the same thread opened at [url]http://www.daniweb.com/forums/thread176912.html[/url]

Member Avatar for sknake
0
101
Member Avatar for rapture

What is a form letter? Someone submits some kind of request and in turn you send them a form to fill out? And is the Copy/Paste you copying/pasting forms to (an email to them?) or are you copying/pasting data such as their name and address in to the form, then …

Member Avatar for rapture
0
111
Member Avatar for papuccino1

First off this is in the wrong forum :( -- Please post these question to SQL in the future. Secondly what version of SQL is this? In SQL 2005 they introduced "Delete Top" so the mechanism I would use for going about this task is quite different depending on the …

Member Avatar for sknake
0
182
Member Avatar for papuccino1

This is a duplicate post of the problem you experienced in: [url]http://www.daniweb.com/forums/thread175798.html[/url] I don't mind helping you with homework but abide by the rules. If you're aspiring to be a software developer then you must take notice that the two connection dialogs are the exact same and the problem isn't …

Member Avatar for sknake
0
101
Member Avatar for topsurveysite

Ignore bobchrist, the domain name does matter. I have personally had a site rank 7 on google for search terms in the domain name that did not appear in the site's content. The domain was 10+ years old and stable with its content. When you google something do you notice …

Member Avatar for Robdale
0
190
Member Avatar for pete08

You do not send E-Mail to other computers per se, you send it to their responsible mail server. So depending on your network you probably have an email server for the LAN (your workplace?) or share a common ISP email address. To send an email via code: [code=c#] using (MailMessage …

Member Avatar for pete08
0
158
Member Avatar for samcaleb05

You need to purchase an OCR suite for .NET in order to do this. I use atalasoft for my .TIFF imaging needs, you can check out their OCR product at: [url]http://www.atalasoft.com/products/dotimage/ocr/default.aspx[/url]

Member Avatar for LizR
0
231
Member Avatar for loveforfire33

You can use: [code=c#] string.Split(new char[] { '/' }) [/code] For more examples: [url]http://dotnetperls.com/Content/String-Split-Benchmark.aspx[/url] It would probably make more sense to use a dateTimePicker...

Member Avatar for JerryShaw
0
93
Member Avatar for pace59
Re: help

That isn't really enough information to indicate what caused the backup to fail. Look through your SQL Server Error Logs and your Window's Error Logs to see if you can find more detail. PASTE the EXACT error messages as seen on your server to the forum, each in its own …

Member Avatar for pace59
0
253
Member Avatar for staplesauce

Care to post the full code unit so I can load it up in a debugger and test without putting it back together?

Member Avatar for danielernesto
0
147
Member Avatar for VK4KBG
Re: DNS

This really boils down to your router then. What type of router is it? It sounds like the firmware for the router is taking in the web port instead of forwarding it, perhaps you could change the web configuration port? It might help to invest in a decent router if …

Member Avatar for sknake
0
172
Member Avatar for ahmedo047

You can use this to iterate each text file to perform your operation: [code=c#] DirectoryInfo di = new DirectoryInfo(@"C:\somedir\"); FileInfo[] files = di.GetFiles("*.txt"); foreach (FileInfo fi in files) { string inFile = fi.FullName; //do work here } [/code]

Member Avatar for ahmedo047
0
331
Member Avatar for bapu435

[code=sql] Declare @UserId varchar(10) Set @UserId = 'sknake' Insert Into UserTable (UserId) Select @UserId Where Not Exists ( Select * From UserTable x Where x.UserId = @UserId ) Select @@ROWCOUNT As Result [/code] If the @@ROWCOUNT returns 0 then data already exists and it wasn't inserted, if it is 1 …

Member Avatar for sknake
0
84
Member Avatar for serkan sendur

You can use SIW, a very useful tool: [url]http://www.gtopala.com/siw-download.html[/url] It will give you the process start time among other information about the process such as open files associated with it, networking ports, loaded dlls, etc.

Member Avatar for serkan sendur
0
123
Member Avatar for Digvijaysinh

Is the remote server truly remote, i.e. not on the same LAN? I have written software to do this, but it assumes only one database is being modified. In my case I have an eCommerce website where the transactions are processed and I have another server on a different network …

Member Avatar for sknake
0
766
Member Avatar for Abhishek_Boga

It should be located in: [code=c#] Properties.Settings.Default.ConfigurationString [/code] Unless that is not what you were asking?

Member Avatar for sknake
0
81
Member Avatar for Tracey33

Check the addons associated/loaded with IE. I'm not sure what version you're using but it is available under: "Tools -- Manage Addons -- Enable or Disable Addons" Addons can be associated with a sluggish browser.

Member Avatar for sandeepkumar98
0
141
Member Avatar for chriscross86

Aside from not posting your code inside of the code tags you're supposed to I don't really see the question. If you're debugging it then there is likely code behind which wasn't pasted here?

Member Avatar for chriscross86
0
95
Member Avatar for chriscross86

You don't "code" icons with VS, you consume the media as part of the finished product (your site). For a free photo editor (written in .NET!) visit: [url]http://www.getpaint.net/[/url] Unless I misunderstood your post...

Member Avatar for sknake
0
55
Member Avatar for Eager_Beever

I don't have VS to verify this, but i believe string.Format() does the trick: [code=c#] textBox1.Text = string.Format("{0:00000}", someNumber); [/code]

Member Avatar for Eager_Beever
0
166
Member Avatar for RichardMcCarty

There are two approaches, I recommend the first: [code=sql] Select * From Table1 Where NOT EXISTS ( Select * From Table2 Where Table1.ID = Table2.ID ) [/code] The second, doing exactly as you described, is: [code=sql] Select * From Table1 Where IsNull(( Select Count(*) From Table2 Where Table1.ID=Table2.ID ), 0) …

Member Avatar for sknake
0
124
Member Avatar for MJV

To assign a decimal like that at compile time you need to use a suffix to instruct the compiler what data type to use. [code=c#] decimal d = 1.0m; float f = 1.0f; [/code] The default for non-integral numbers is double.

Member Avatar for sknake
0
93
Member Avatar for Eager_Beever

First off it is not recommended that you use a string when you build SQL Queries dynamically, you should use variables. To get only the date portion you use dateTimePicker1.Value.Date. By using an SQL Variable the date format does not matter, and will work with different locale (region) settings. If …

Member Avatar for sknake
0
440
Member Avatar for nada fouad

There are two functions for generating the conn string depending on the version of access, which can be determined by the file extension or various other ways. [code=c#] public static string BuildAccessConnectionString(string Filename, string Username, string Password, string DatabasePassword) { return string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='{0}';User Id={1};Password={2};Jet OLEDB:Database Password={3};", Filename.Replace("'", "''"), Username, Password, …

Member Avatar for sknake
0
237
Member Avatar for MJV

The table adapter fills a dataset or a datatable, you should have the DataSet on the designer of your form and possibly a binding source. Locate the tableAdapter.Fill, more than likely in your Form's load event. It will look like [code=c#] taAdjustment.Fill(dsRptCashAdjust.Adjustment); [/code] Now to access the data, you will …

Member Avatar for MJV
0
86
Member Avatar for MJV

Without databinding you need to validate the input yourself: [code=c#] private void button1_Click(object sender, EventArgs e) { //Set the value double d1 = 5.0; textBox1.Text = Convert.ToString(d1); } private void button2_Click(object sender, EventArgs e) { //read the value double d1; if (!double.TryParse(textBox1.Text, out d1)) { textBox1.Focus(); textBox1.SelectAll(); MessageBox.Show("Invalid value"); return; …

Member Avatar for MJV
0
110
Member Avatar for KarthikOnIT

Googling the error code "000208D5-0000-0000-C000-000000000046" turned up the same responses everywhere. It appears if at any point you have two different versions of the PIA installed it causes a problem. Did you, or do you, have the 2007 & 2003 PIA's installed? Here is an article on how somebody manually …

Member Avatar for sknake
0
382
Member Avatar for thegreatkk
Member Avatar for Abhishek_Boga

Typically when generating an ID you let the DBMS where records are being stored determine the ID, and after inserting the record you fetch the identity value. If you want to generate a unique ID in an application at runtime use System.Guid. [code=c#] string id = System.Guid.NewGuid().ToString(); [/code]

Member Avatar for Abhishek_Boga
0
89
Member Avatar for jsosnowski

I'm not sure if this will fit your needs exactly but you can read/write a struct in files ([url]http://delphi.about.com/od/fileio/a/fileof_delphi.htm)[/url]. If the data is embedded in a cad file then make the first part of your struct a 5 byte "Signature" and assign 5 unique values that make up the signature. …

Member Avatar for jsosnowski
0
221
Member Avatar for MJV

You can switch directly on the string, but make sure you won't have a case-sensitive issue. More can be read at: [url]http://blogs.msdn.com/brada/archive/2003/08/14/50227.aspx[/url] [code=c#] switch(optypCB.Text) { case "Draw": designhrsTB = 80; break; case "Form": designhrsTB = 120; break; case "Pierce": designhrsTB =120; break; case "Trim": designhrsTB =160; break; default: throw new …

Member Avatar for Rashakil Fol
0
296
Member Avatar for Xessa

What is the error message you receive? If you can connect but not list the database it might be a permissions error. By default IIS runs as a non-privelaged users and you either need to use SQL Authentication and add a user to your SQL Server, and add the username …

Member Avatar for Xessa
0
191
Member Avatar for GameboyHippo

Since you're creating this stored procedure at run time then you need to create the parameters as well. As far as I know at design time if you specify the sproc name with a valid connection and edit the parameters it fetches them from the procedure and autopopulates the list. …

Member Avatar for sknake
0
174
Member Avatar for papuccino1

Drop a table adapter on the form and it will pop the wizard up to create a connection string. Once you have created the connection string and saved it, you can access it in Properties.Settings.Default.ConnectionStringName OR You could manually make the connection string, see: [url]www.connectionstrings.com[/url]

Member Avatar for sknake
0
438
Member Avatar for wendas

Add a form to the new project with the same name as the form you want to copy and add a context menu strip to the form, and save it (the context menu strip forces the .resx file to be created). Next physically copy the files from the old project …

Member Avatar for LizR
0
906
Member Avatar for murderotica

I personally don't recommend sockets for IPC communication with services because it adds a level of complexity when dealing with firewalls (read the quickbooks FAQ on getting their modules to sync up, they use IPC communication over sockets and have many articles devoted on how to fix what constantly breaks). …

Member Avatar for sknake
0
938
Member Avatar for viswa_007

Here is a sample snippet of the code I use to post bug reports from my applications: [code=c#] public static void PostRpt(string msg) { WebRequest post = WebRequest.Create(@"http://www.apexsoftware.com/"); post.Method = "POST"; post.ContentType = "application/x-www-form-urlencoded"; using (Stream dataStream = post.GetRequestStream()) { System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); Byte[] bytes = encoding.GetBytes(msg); dataStream.Write(bytes, …

Member Avatar for sknake
0
144
Member Avatar for gbpatil16

Microsoft has a log parser available at: [url]http://www.microsoft.com/DownLoads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en[/url] The log's information varies depending on the settings you have enabled. By default not all available information is displayed, such as referrer and bytes sent.

Member Avatar for sknake
0
71
Member Avatar for Digvijaysinh

You never want to "Select *" from a table, or iterate every row instead of including a proper where clause. Only bring forth the columns you need. I disagree that you should only query the scalar value (string) of the password because more than likely you want to cache the …

Member Avatar for sknake
0
92
Member Avatar for Tinaa

The End.