Category / Section
How to assign images to WinForms ComboBox (ComboBoxAdv) items?
1 min read
Image settings
Use ComboBoxAdv.ImageList property to get/set ImageList for control and ComboBoxAdv.ImageIndexes property to set image Index for specified item.
C#
this.comboBoxAdv1.ImageIndexes[2] = 0;
VB
Me.comboBoxAdv1.ImageIndexes(2) = 0
This will assign first image in ComboBoxAdv.ImageList to second item in items list. We use ComboBoxAdv.ShowImageInTextBox property to show images in TextArea.
C#
this.comboBoxAdv1.ShowImageInTextBox = true;
VB
Me.comboBoxAdv1.ShowImageInTextBox = True