Try This And Got your Work Done
Let us Suppose You have a table named Name_Tab
having Two Fields EmpId and EmpName
Create A function Like
Public Sub MyFunction()
Dim cmd As SqlClient.SqlCommand = New SqlClient.SqlCommand("Select * From Name_tab", myCon.con())
cmd.CommandType = CommandType.Text
Dim dacmd As New SqlClient.SqlDataAdapter(cmd)
Dim dt As New DataTable
dacmd.Fill(dt)
For i As Integer = 0 To dt.Rows.Count - 1
ComboBox1.Items.Add(dt.Rows(i).Item(0))
ComboBox2.Items.Add(dt.Rows(i).Item(1))
Next
End Sub
Call this MyFunction () on your Form Load Event
You will get the Result as in combobox1 Empid will get Filled
and in combobox2 Empname will get Filled
But If you Want to fill both the boxes With
Same Data than Just Change it as Per Your Need
Implement this and let me know the Result