How do I read data in ms access database and display it in a listbox. I have the codes here but i got errors.
private void button3_Click(object sender, Even
GetString()
takes an int as the parameter and not a string. Meaning that you must use the index of the column.
In your specific circumstance as "FirstName" is the second column the index would be 1:
listBox1.Text = Reader.GetString(1);
http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdatareader.getstring.aspx