We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Use ImageIndexItem

Thread ID:





127750 Dec 6,2016 04:11 PM UTC Dec 8,2016 09:27 AM UTC WinForms 1
Tags: ComboBoxAdv
Alexander Hefele
Asked On December 6, 2016 04:11 PM UTC

i try to set a ImageIndexItem to an ComboBoxAdv Item.

read at Manual i can use somethink like

myComboboxAdv.ItemsImageIndexes.Add(New Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(myComboboxAdv, "ItemName", 0))

But this function add a 'new' entry.

unfortunately the myComboboxAdv.Items.add("ItemName") function Adds a ImageIndex-Entry also automatically 
So at MyComboBoxAdv.ImageIndexes are dublicate entrys for one Item and the Image would't shown.

how can i change the index of the Image that should be shown for a existing item?
Because i would like to change the image while runtime it is more interesting to change the image instead of set the correct index by item.add()

Keerthana Jegannathan [Syncfusion]
Replied On December 8, 2016 09:27 AM UTC

Hi Alexander,   
Thank you for contacting Syncfusion support.   
We suspect your requirement is to change the image index of the ComboBoxAdv item. If so, this requirement can be met by using the  “DrawItem” of the ListBox​​​. We have prepared a sample in which we have drawn the image for the ComboBox item based on the image index using “DrawItem” event and it can be downloaded from the below location.   
Sample: ComboBoxItemImageIndex   
Please let us know, if we misunderstood your query.   
Keerthana J.   


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon