166 Archived Topics
Remove Filter I have a form that has multiple text boxes, check boxes etc... The question is, instead of writing out: [CODE=c#] cmd.Parameters.Add(new SqlParameter("@myparam", (object)textbox.Text));[/CODE] a million times for each parameter, is it possible to load all of the names of the objects on a form into an array and just do … | |
Does anyone use it? Seems kind of scary to me the thought that I would allow a mysterious command to alter data in my tables. Is it better to write your own update strings and execute them or use the command builder? Does it matter? Edit: PS the new site … | |
I have been working on a form that reads records from a SQL database. I have the binding working in that it populates all of the fields with the correct data. But if I am viewing record 1 and record 2 changes while I'm looking at 1, then browse to … | |
Can you do that? I can't seem to get it to work. [CODE=C#] lblfiledate.DataBindings.Add("Text", bindsrc, "filedate"); [/CODE] Doesn't work. | |
Anyone have any good links to tutorials for printing with C#? I need to mimic a form that we have. It's a rather complex form, so if you know of a tutorial that is better than just printing rows and columns of data would be greatly appreciative! | |
Thanks to you guys I have been able to get my first application halfway going. But I have a question about data integrity. The application that I am developing utilizes a single sql server and multiple work stations accessing that sql server. What is the best way to maintain data … | |
I'm lost. I've been trying to do this for a while now and I can get halfway what I need. But I can't tell if it's working or not, or where my problem is. I don't want to use the wizard in VS to add a data source, I'd like … | |
Good evening! I was hoping someone could help me here. I've been teaching myself C# for quite a while now, and I'm working on a project and have run into a problem. I would like to use the binding navigator control to allow my users to browse through various tables, … | |
I've been having problems figuring out a way to do this. I need it so that if the user opens form a and then later on buries that form under others, and they click the menu to open the form again that it just sets focus to it instead of … | |
It's been a while since I've posted. Things have been going well for my project, but I'm coming back to the issue of setting up a SQL server on my user's computers. Sknake was kind enough to give me the command line switches to get a MSSQL install set up … | |
OK before I fumble around any more and end up needing to change everything again...I was wondering if someone would be kind enough to have a discussion with me about a networked solution. Right now what I have is an Access database with forms that manage the data...this is great, … | |
Sorry to keep asking so many questions, but you guys always seem to be so nice and helpful... I need a way to verify that a database file is in a somewhat stable state...stable as in it has all of the correct tables, and each table has all of the … | |
Would anyone have the heart to post some example code to create an empty table? My code doesn't seem to work, it says the data type "int" in invalid...here's what I have: [CODE=C#] if (File.Exists(ExecutablePath + "\\idcc_data\\_IDCC.sdf") == true) { SqlCeCommand cmd; SqlCeConnection connection = new SqlCeConnection("DataSource=" + ExecutablePath + … | |
Hi! I'm new to the site! I've been searching for help on Google for a while and keep getting results that point to this site, so I figured I should jump on. I'm new to C#. I've been programming in VBA in MS Access for a while now and have … | |
As I am working on my first application the thought occured to me: 1) Are "plug-ins" a common thing for applications to support? As in..."copy this .dll (or whatever) to this folder and bam! you get more features!" 2) How do most people handle updates? Replace the entire executable or … | |
I was wondering if someone could give me a quick hand with this. I have a text box that a user types a directory location in. Obviously the directory path includes at least one "\" character and could contain many more. Because the slash is the escape character and I … |
The End.