title: Displaying database record on a label in VB.Net
body: <p>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</p>
  <blockquote>
  <p>ArgumentException was unhandled</p>
  <p>This causes two bindings in the collection to bind to the same property. Parameter name: binding</p>
  </blockquote>
  <p>I really don't understand the meaning of this, by the way still new and getting used to vb.net</p>
  <pre class="lang-vb prettyprint-override"><code>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(&quot;server=localhost;user id=root;database=db&quot;)
          Dim DataSet1 As New DataSet
  
  
          Dim sql As String = &quot;SELECT * FROM voter where vid='&quot; &amp; TextBox1.Text &amp; &quot;'&quot;
          Dim da As New MySqlDataAdapter(sql, thisConnection)
  
          da.Fill(DataSet1, &quot;db&quot;)
          Label2.DataBindings.Add(&quot;text&quot;, DataSet1, &quot;db.fname&quot;)
          Label10.DataBindings.Add(&quot;text&quot;, DataSet1, &quot;db.mi&quot;)
          Label11.DataBindings.Add(&quot;text&quot;, DataSet1, &quot;db.lname&quot;)
          Label12.DataBindings.Add(&quot;text&quot;, DataSet1, &quot;db.yr&quot;)
          Label13.DataBindings.Add(&quot;text&quot;, DataSet1, &quot;db.sec&quot;)
          Label14.DataBindings.Add(&quot;text&quot;, DataSet1, &quot;db.vstatus&quot;)
  
      End Sub
  End Class
  </code></pre>