I have two windows Forms(Form1 and Form2) Form1 has a combo box with one tableA and Form2 has a combo box with the same table A. I want to get the Data from Form2 to populate Form 1 when a user click a Button Update Form2.
Form1 code:
Me.combobox1.DataSource = ds.Tables("A")
Me.combobox1.DisplayMember
= "Name"
Me.combobox1.ValueMember = "dtbl.NameID"
Form2:
Me.combobox2.DataSource = dv.Tables("A")
Me.combobox2.DisplayMember
= "Name"
Me.combobox2ValueMember = "dtbl.NameID"
Button update Form1
Start Free Trial