| Thread | Last Post | Replies |
|
| getting IntPtr of -1 | 16 Nov 2006 21:41 GMT | 3 |
hi...can anyone tell me why im getting an IntPtr of -1 being returned? the device is plugged in and being recognized by windows....so i dont understand this. Thanks private void GetFiles(String str)
|
| HttpWebRequest and maximum http connection | 16 Nov 2006 21:27 GMT | 7 |
In a windows form I execute a lot of HttpWebRequest. Each request run in his own thread and every requests have the same target server. Looking at netstat and in the web server logs it seems to me that only 2 connection are opened even if I have 100 threads.
|
| Of Structs, Layouts, and Serialization | 16 Nov 2006 21:23 GMT | 5 |
I have a class that needs to be serialized to a byte buffer. I'm using a large, unwieldy, homegrown serialization method, which has to change every time the class's members change, and I think there's probably a better way.
|
| Threads, forms, and controls | 16 Nov 2006 21:22 GMT | 2 |
Is this scenario possible? One has a form, a thread and a control. The thread adds a control to the form. The form adds handlers to every control added but because the control is in a different thread the handler might cause an exception.
|
| Modal Form not closign cleanly | 16 Nov 2006 20:48 GMT | 3 |
I think I'm missing a basic bit of understanding with modal forms. This is the problem I have: 1. User clicks button on form, event handler throws an exception. 2. In catch block a form is shown modally (i.e. errForm.ShowDialog
|
| Order of base class "OnWhatever()" calls | 16 Nov 2006 20:48 GMT | 2 |
When overriding form/control functions like "OnLoad()", "OnFormClosed()", etc., should the base class version be called before or after your own code. The docs say nothing about this nor give any guidance. It probably depends on the function itself so are you supposed to ...
|
| Determine the available Serial Port on a system | 16 Nov 2006 20:18 GMT | 5 |
Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting to opening the Serial Port and catching the associated exception? Thanks
|
| Focusing on a text box in a datagrid | 16 Nov 2006 18:53 GMT | 1 |
I am using c# in VS 2002 using SQL Server 2000. I have a datagrid with an 'edit' button. When the 'edit' button is clicked, you can update the columns for that one row. The logic works fine, but I would like to place the cursor in the 1st textbox of that row. How can I do ...
|
| Centralized Master Pages | 16 Nov 2006 18:49 GMT | 1 |
I have the task of creating several one-page websites for our subsidiaries. I would like to use the MasterPage concept with this task. The sites will all be separate site, located in their own folder. Essentially, I would like to know if I can create a centralized Master Page and ...
|
| NumberFormat problem in StreamWriter | 16 Nov 2006 17:47 GMT | 1 |
Hi NG! I have a .NET project which uses a sublibrary written in C++. On the .NET side I use the XMLSerializer to serialize an object (into an MemoryStream). This stream would be casted into a byte-array and
|
| Parsing Multipart formdata | 16 Nov 2006 17:37 GMT | 3 |
Greeting, I am writing my own web server and having some problme parsing the the mulitpart/form-data stream that is sent from the browsers.
|
| More elegant way to get "Friday of last week"? | 16 Nov 2006 16:33 GMT | 10 |
This is how I'm currently getting Friday of last week. It strikes me as cumbersome. Is there a slicker/more elegant way? Thanks for any ideas, cdj
|
| DLL Event | 16 Nov 2006 16:14 GMT | 3 |
I worked with vb6 and now it I'm working with VS C# 2005 (I'm an c#- beginner) I have a main progamm which search for Dlls in a folder. I include all dlls and thats no problem: i can call the functions with
|
| "Conditional" attribute confusion | 16 Nov 2006 16:02 GMT | 1 |
I use VS2005 with framework 2.0 and I just found a behavior I consider odd. Here is the code that illustrates th eproblem: [Conditional("DEBUG")] public static void MethodA()
|
| Do we have "on error resume next" in C#? | 16 Nov 2006 15:42 GMT | 11 |
I know that this is not a good practice, but I wonder do we have "on error resume next" in C#? Thanks, Max
|