2,245 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Post the full error message | |
Re: 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 | |
Re: Please do not post duplicates. You have the same thread opened at [url]http://www.daniweb.com/forums/thread176912.html[/url] | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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... | |
Re: 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 … | |
Re: Care to post the full code unit so I can load it up in a debugger and test without putting it back together? | |
Re: 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 … | |
Re: 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] | |
Re: [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 … | |
Re: 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. | |
Re: 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 … | |
Re: It should be located in: [code=c#] Properties.Settings.Default.ConfigurationString [/code] Unless that is not what you were asking? | |
Re: 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. | |
Re: 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? | |
Re: 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... | |
Re: 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] | |
Re: 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) … | |
Re: 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. | |
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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; … | |
Re: 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 … | |
Re: 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] | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. … | |
Re: 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] | |
Re: 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 … | |
Re: 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). … | |
Re: 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, … | |
Re: 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. | |
Re: 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 … | |
The End.