|
|
Howto: Handle MouseWheel messages (WM_MOUSEWHEEL) manually
Today i had to manually handle the mouse wheel functionality in a customer project and suppress the raising of the MouseWheel event as long as a specific condition returned false.
After some resea...
|
How to: Catch UnhandledException in Windows Services
From time to time you will have to implement some functionality as an Windows service.
Along with some other issues regarding to Windows services you often get some troubles when unhandled excepti...
|
How to define optional C# method parameters with [Optional] attribute
One feature that i am missing when using C# is the ability to declare a method parameter as optional.
If you have to call a specific method without having enough input values to meet the exact sig...
|
Visual Studio 2005 build process locks assembly output
Under some circumstances the Visual Studio 2005 process can generate locks on the output assemblies while building your projects. This typically occurs in projects with more than 10 projects in one...
|
PlatformNotSupportedException when trying to open a socket in C#
A few days ago i ran into some strange behavior when trying to open a socket an a clients computer using a simple network enabled application: ...[3452] System.PlatformNotSupportedException: This o...
|
How to ensure that only a single program instance is running
Often you want to ensure that only a single instance of your application is running on a maschine. Therefore you need a mechanism to determine if an instance is alread<y running to avoid startin...
|
ArgumentNullException when calling Clipboard.SetText
The following code throws an error with a misleading error message: stringtext = “”;if(text != null ){ Clipboard.SetText(text, TextDataFormat.Text );} System.ArgumentNullException: The value must ...
|