Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied