Getting data from MS Access database and display it in a listbox

后端 未结 7 739
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 06:37

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         


        
相关标签:
7条回答
  • 2020-12-11 07:27

    Your error is in this line:

    listBox1.Text = Reader.GetString("FirstName");
    

    You must pass a number in the GetString() function.

    0 讨论(0)
提交回复
热议问题