Data Settings in Windows Forms ComboBoxAdv(Classic)

27 Apr 20211 minute to read

Data for the ComboBoxAdv is added through String Collection Editor, invoked through the ComboBoxAdv.Items property.

Overview_img302

//Adding data to ComboBoxAdv

this.comboBoxAdv1.Items.AddRange(new object[] { "Currency", "DateTimePicker", "ComboBoxAdv", "AutoComplete", "ListBox", "ContextMenu", "CurrencyEdit" });
'Adding data to ComboBoxAdv

Me.comboBoxAdv1.Items.AddRange(New Object() {"Currency", "DateTimePicker", "ComboBoxAdv", "AutoComplete", "ListBox", "ContextMenu", _

"CurrencyEdit"})

Overview_img303

NOTE

ComboBoxAdv can also be bound to an external Data source like Data Table.
Refer Data binding topic To set image for dropdown items refer Image settings