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 the control and ComboBoxAdv.ImageIndexes property to set image index the for specified item.
C#
this.comboBoxAdv1.ImageIndexes[2] = 0;
VB
Me.comboBoxAdv1.ImageIndexes(2) = 0
This will assign the first image in the ComboBoxAdv.ImageList to the second item in the items list. We use the ComboBoxAdv.ShowImageInTextBox property to show images in the TextArea.
C#
this.comboBoxAdv1.ShowImageInTextBox = true;
VB
Me.comboBoxAdv1.ShowImageInTextBox = True