Archives for the ‘Tutorials’ Category

C# Hot Keys

I will be describing two types of hot keys here: application hotkeys and system-wide hotkeys. Application hotkeys will be processed when your application is the active application, the key press anywhere else in the system will not alert your application. On the other hand a system-wide hotkey will alert your application whenever the key combination [...]

What’s new in C# 4.0: Part 2: Windows 64-bit Support

The Microsoft .NET framework 4 includes support for identifying whether the application is running in a 64-bit process or on a 64-bit operating system. You are able to check if you are running in a 64-bit process, by using Environment.Is64BitProcess, which returns a boolean of true if you are in a 64-bit process, or false [...]

What’s new in C# 4.0: Part 1: Optional Parameters & Named Parameters

Optional Parameters Prior to C# 4.0 the best method for optional parameters was method overloading. However, now C# 4.0 ships with the ability to have optional parameters, which are very simple to use. The biggest impact I think this will have is in COM interop, where you used to have to specify a value for [...]

New Tutorials

I am in the process of writing more tutorials from a long list of general queries I recieve, I hope to put a few new ones up each fortnight. Here is the next installment: Multi-monitor Programming in C# You can view all of the current tutorials on my tutorial page as I wont always update [...]