ComboBox - Images

0
0

I want add a small icon to each item in my comboBox, how can i do that? is this possible?

  • You must to post comments
0
0

You can also see an example of another approach in the documentation here: https://docs.wisej.com/docs/controls/lists/combobox
In this example, you use data binding with a data source with icon names and use the IconMember to specify the property.

Here’s a sample.

  • You must to post comments
0
1

Yes, it’s possible. It’s actually quite simple.

First, look at the properties of your combobox in the designer. Set AllowHtml to True.
Now that AllowHtml is true, you can use a HTML img tag to embed an image in the text of the combobox.

I’ve attached a sample- just go to the combobox in the designer and click on “Edit Items” to see the img tags that I used.

You can use an image that is stored in the project by using a relative file path, or you can use an online image by providing a url that links to the image.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.