June 2009

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 }

When developing software, you most probably will need to make use of some form or another of iterative logic. Like most languages, C# offers a number of looping constructs each of which can have different uses. The for Loop This loop structure tends to be used when you know how many times you want to [...]

{ 1 comment }

Most applications require the use of strings since it is one of the most important native data types in C#. Very often you would need to append two strings or maybe more together. There are two ways to do this in C# – either through string concatenation or by making use of the C# StringBuilder [...]

{ 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 [...]

{ 5 comments }