why do you need this, a class with static methods has equivalent functionality
FriendlyFiend
Posts
-
how to add module in c#.net? -
How to make toolbarcheck out this article here at codeproject
-
how to hide treeview node???Do'nt draw the childelements to the treeview, you can store them as XmlElements in the tag property of the parent node and retrieve it when you need
-
Which Better Thread or ThreadPoolThats not neccessarily true, you need a profiler to actually to find out whats going on, try checking some of the perf counters while your app is running, maybe you are allocating several objects and not disposing them causing the GC to run often, The network stream could also be acting asychronously If you are having more than one client connecting to your server then possibly the ThreadPool will be better as it will manage your thread allocation more efficiently.
-
Group similar taskbar buttons in the Taskbar doesn't work ( C# solution ) ?The rough hack appears to be setting a registry key under HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache for the full application path with a group name value eg. name: "c:\myapp\app.exe", value: My Apps will group all instances of your application under "My Apps"
-
StartUp WindowsThe simplest way is to put a shortcut to your app under the Startup folder of the Programs menu in your Start menu, the more complicated way is to add it to add a key to the registry .
-
Good tools to find dead C# code...What about NCover, its primarily used to check for test coverage but can be used for your purposes too I think
-
i getting error with database connectionTry deleting any *.LDB files in the same folder as the MDB these are used by access to manage simultaneous logins for the MDB, usually these are left without cleanup if the connection is not closed properly
-
usb interfacing in C#you could try the USB library over at http://www.icsharpcode.com for a raw USB C# implementation.
-
How to disable status bar messages for Hyperlink ControlsYou could try resetting the status bar with an empty string or some other display text when the cursor is over the link, I don't think empty strings will work and you need to show some other text. eg. a...
-
The difference between . and ,The best way is to provide a IFormatProvider from the culture in which your App is running this makes sure you have international support. Eg, Double.Parse(N, Thread.CurrentCulture.NumberFormat); A short term fix is to pass a number style argument to Double.Parse, with the current decimal seperator in your case "," in some other countries ".", look up MSDN for details on numberstyles, basic format is [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws]
-
How to check if an item already exists in a listbox? Give an ExampleYou can use the ListItemCollection's FindByValue/FindByText methods to see if a value exists in the ListBox. eg. if(null==ListBox1.Items.FindByValue(NewItem.Value))ListBox1.Items.Add(NewItem)
-
Covariant return types?You are thinking only in terms of string is a typeof object kind of way what, if the return types did not come from the same hierarchy at all eg. base class returns point your override returns string, this is a very difficult thing to keep track of especially if you want the compiler to throw errors in these kind of situations ...