0

binding combobox

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

22nd Oct 2018, 2:47 AM
‎M&&M
‎M&&M - avatar
1 Réponse
+ 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
Sergo - avatar