From the monthly archives:

November 2009

Binding a Windows Forms ComboBox in C#

by Dave on November 29, 2009

in Windows Forms

Most often when reading the selected item of a bound combobox you will need more information than just the selected text or the selected index of the combo. For example, if you have a combobox bound to a user table in your database, you will most probably want to have the full user name displayed [...]

{ 0 comments }

C# Escape Sequence Listing

by Dave on November 10, 2009

in String Operations

What is an escape sequence? Well, put simply, an escape sequence is a series of special characters which are interpreted by the compiler as a command. In other words, they suspend the normal processing to perform some special function.
In C#, escape sequences are represented by a ‘\’ (backslash) followed by a letter or a combination [...]

{ 2 comments }

Retrieving Data From a MySQL Database

by Dave on November 7, 2009

in Databases

In this article I am going to show you how to programmatically retrieve data from a MySQL database using the MySqlDataAdapter and the MySqlDataReader classes. Both these classes are available once you install the MySQL Connector for .NET which can be downloaded from here: MySQL Connectors.
For this example we need a database with some test [...]

{ 0 comments }