Private Sub BindComboBox()
ComboBox1.DataSource = DataSet1.Tables("Suppliers")
ComboBox1.DisplayMember = "ProductName"
End Sub
private void BindComboBox()
{
comboBox1.DataSource = dataSet1.Tables["Suppliers"];
comboBox1.DisplayMember = "ProductName";
}
private void BindComboBox()
{
comboBox1.set_DataSource(dataSet1.get_Tables().get_Item(
"Suppliers"));
comboBox1.set_DisplayMember("ProductName");
}