| Thread | Last Post | Replies |
|
| Looping through an array | 11 Mar 2008 22:19 GMT | 11 |
I have an array with 5 items, when I retrieve the 5 items I need to add (+1) one more item to the array to recreate it to make a new array = 6. But as I am looping through the array the program will crash because number 6 in the array does
|
| FindWindow...next? | 11 Mar 2008 22:06 GMT | 2 |
When I call FindWindow("SciCalc", null) I always get the same handle back. How can I enumerate through the (open) calculator forms? I dont want to use EnumWindows and check for the handles (bit overdone I think)
|
| How to tell if an object inherits an interface | 11 Mar 2008 21:02 GMT | 4 |
I have a situation where I need to test if a Control implements from a specific Interface to avoid an invalid cast exception: foreach (Control ctrl in this.Controls) {
|
| Solution getting too big to handle | 11 Mar 2008 20:24 GMT | 2 |
I'm trying to write this client/server card room. I've been working on it all on my tod in my bedsit using VS C# Express 2008. The solution has grown to include multiple libraries and projects. It uses the command pattern. A client sends the server commands like
|
| xml serialization questions | 11 Mar 2008 19:55 GMT | 2 |
I have an xml serialization question i was hoping someone would know. If you have a class member that is an array... [XmlArrayItem("Number")] public List<int> MyNumbers
|
| Trying to split an array on a tab | 11 Mar 2008 19:49 GMT | 5 |
I am trying to split an Array into another array. Each value in the array has tab delimited strings. I am getting: Cannot implicitly convert type 'string[]' to 'string'
|
| Changing form scale to mm | 11 Mar 2008 19:14 GMT | 4 |
Hey i need to change a form's scale mode from pixels to millimeters. Can anyone tell me how to do that?
|
| Max length of code snippet? | 11 Mar 2008 19:05 GMT | 3 |
Is there a maximum length for a code snippet? I have created quite a long one (> 170 lines), which when I use it to generate code, it only generates around the first 170 lines of the snippet.
|
| Typed Datasets | 11 Mar 2008 18:37 GMT | 5 |
I have a problem whereby I have one form dealing with one of two typed datasets with almost all the same column names except two, depenind on which option the user selects. at the moment I have if statements like the following that set the value of
|
| finding the last entered identity | 11 Mar 2008 18:17 GMT | 1 |
I was wondering if there was a way to find the last entered identitykey after doing an updatedataset. I have this.sysFeedsDS.SysFeeds.AddSysFeedsRow(this.feedName, "", this.sourceId,
|
| Edit app.config at runtime. | 11 Mar 2008 18:16 GMT | 1 |
I need to be able to read the contents of my app.config file into a datagrid and allow the nodes to be edited and saved in the config file but for the life of me cannot figure it out. I know I have to work with System.Configuration.ConfigurationManager
|
| Whats difference between stack and heap in C#? | 11 Mar 2008 17:05 GMT | 1 |
I'm reading that the stack is where 'value' types are created, and the heap is where reference objects are allocated but I'm wondering if these are just 2 arbitrary sections of memory, or there is more to it. Also on a somewhat related topic, in C++ I've read that a DLL is in a
|
| Exceptions | 11 Mar 2008 16:57 GMT | 1 |
Hello I got the following scenario: Getting exception from some code unit : catch (System.Exception ex) {
|
| Delete Driver with C# | 11 Mar 2008 16:52 GMT | 3 |
I want to write a smal application which deletes a driver installed on Vista. Right now I delete a driver manually within the Hardware Manager. I want to do this with an app. Thanks and regards
|
| Dynamic forms | 11 Mar 2008 16:48 GMT | 6 |
Given a C# form (and its controls) that is created dynamically i.e. programatically rather than using the IDE, is there a way of writing that form's definition to a .CS file?
|