I have this problem that when I put id no. in the textbox1 and click the button1 the record successfully shows, but when I change the id no. in the textbox1 and click button1 again the error says
ArgumentException was unhandled
This causes two bindings in the collection to bind to the same property. Parameter name: binding
I really don't understand the meaning of this, by the way still new and getting used to vb.net
Imports MySql.Data.MySqlClient
Public Class Form16
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim thisConnection As New MySqlConnection("server=localhost;user id=root;database=db")
Dim DataSet1 As New DataSet
Dim sql As String = "SELECT * FROM voter where vid='" & TextBox1.Text & "'"
Dim da As New MySqlDataAdapter(sql, thisConnection)
da.Fill(DataSet1, "db")
Label2.DataBindings.Add("text", DataSet1, "db.fname")
Label10.DataBindings.Add("text", DataSet1, "db.mi")
Label11.DataBindings.Add("text", DataSet1, "db.lname")
Label12.DataBindings.Add("text", DataSet1, "db.yr")
Label13.DataBindings.Add("text", DataSet1, "db.sec")
Label14.DataBindings.Add("text", DataSet1, "db.vstatus")
End Sub
End Class