binding combobox | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

binding combobox

how to bind combobox and add valuemember to it manually??

22nd Oct 2018, 2:47 AM
‎M&&M - avatar
1 Answer
+ 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
22nd Oct 2018, 12:34 PM
Sergo - avatar