From the category archives:

Windows Forms

Using the Settings file in C#

by Dave on July 22, 2009

in Windows Forms

As a software developer, how many times have you needed to store your application’s settings in a file, be it an ini file, an xml file, or maybe even a plain text file? It is a common requirement for many developers, and with C# it is really simple to do. The Microsoft.NET Framework 2.0 introduced [...]

{ 2 comments }

Sometimes you might require to stop a user from closing your Windows form – maybe because the form is processing something in the background and you don’t want the user to break that process, or maybe because the user does not have access rights to close your application. Either way this is very simple to [...]

{ 0 comments }

Windows Forms Event Sequence

by Dave on June 26, 2009

in Windows Forms

When developing Windows applications using Windows Forms, you will most likely find yourself needing to make use of the form’s events, and this requires you to know when each form event fires. In this short reference article I will show you the sequence of the form events when the Form is being started and when [...]

{ 0 comments }

The MessageBox Explained

by Dave on June 20, 2009

in Articles,Windows Forms

The whole concept behind a message box is to display text to the user or to ask a question of some sort. So in practice we can use message boxes to display an error to the user, or maybe to ask the user to confirm something before continuing. A C# MessageBox is a read-only dialog [...]

{ 3 comments }