Threading with .NET

Threads are very easy to use with C#. In this example I use a thread to ensure that a connection to a database is closed correctly (merely closing a connection in a method was not always successful as that connection was sometimes still busy when the Close() method line was... [Read More]
Tags: .net c#

C# Windows API Calls

If, for example you want to send a message to you window to bring it to the top of the z-order, add the following code into your class declaration, e.g.: [Read More]
Tags: c#