Forum: C# Mar 24th, 2009 |
| Replies: 3 Views: 349 If you've ever expanded the file for a form in the list view in your solution explorer pane, you should see two files below the main Form source file. There should be a [form_name].Designer.cs (or... |
Forum: C# Mar 24th, 2009 |
| Replies: 5 Views: 595 To answer you questions about the different source files, if you're using Visual Studio, each time you add a new component to your solution (as explained by ddanbe above), it is placed in its own... |
Forum: C# Feb 27th, 2009 |
| Replies: 13 Views: 787 When you set the DataSource or load the Items manually, you could just set the SelectedIndex property to 0. That should keep you from getting errors about nothing being selected. I guess whether or... |
Forum: C# Feb 23rd, 2009 |
| Replies: 13 Views: 787 OK...have you tried using the SelectedItem property? |
Forum: C# Feb 23rd, 2009 |
| Replies: 13 Views: 787 If this is the problem I think it is, I usually fix it by using the Text property of the combo box. It should allow you to get the text of what's in the combo box without the user actually having to... |
Forum: C# Feb 20th, 2009 |
| Replies: 8 Views: 1,873 An easy approach would be to separate the values in the array by a comma before putting it into the database as a comma delimited string. Then when you bring it back from the database, just do a... |
Forum: C# Feb 13th, 2009 |
| Replies: 9 Views: 1,105 If I'm reading this correctly, it sounds like you just want to be able to manipulate the ListView on a Form from another class somewhere in your application. Have you tried making a public instance... |
Forum: C# Jan 9th, 2009 |
| Replies: 5 Views: 348 I think there's a couple of ways you could solve the problem you are having. One of the options you could use would be to make MotorVehicleAdministration a separate object.
using System;
... |
Forum: C# Apr 30th, 2008 |
| Replies: 1 Views: 474 Just from quickly looking at your connection string, I saw that you used " marks in your string. You don't actually need these. If you go to http://www.connectionstrings.com, you can get connection... |
Forum: C# Apr 28th, 2008 |
| Replies: 4 Views: 477 I've always used the following method for database operations. I split the actual database access into two methods: ExecuteQuery and ExecuteNonQuery. In your case, if you're trying to write to the... |
Forum: C# Apr 25th, 2008 |
| Replies: 6 Views: 2,190 I've always run into issues with using the IDENTITY property in Access. If your using an autonumber, you could always just do something like:
SELECT MAX(autonumber_column_name) AS alias FROM... |