0
binding combobox
how to bind combobox and add valuemember to it manually??
1 Respuesta
+ 2
At first add TableLayoutPanel from ToolBox.
ComboBox combo = new ComboBox();
private void Form1_Load(object sender, EventArgs e)
{
tableLayoutPanel1.RowCount = 1;
tableLayoutPanel1.ColumnCount = 1;
tableLayoutPanel1.Controls.Add(combo);
combo.Items.Add("Hello");
combo.Items.Add("World");
}
//Than you can change everything you want in combobox