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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pictures in ComboBoxAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

67325 Aug 14,2007 11:25 AM UTC Oct 26,2007 02:37 PM UTC Windows Forms 3
loading
Tags: Tools
Ben Fisher
Asked On August 14, 2007 11:25 AM UTC

Hi,

I'd like to have a combo box that displays either just pictures or pictures with text.

From looking at the ComboBoxAdv I see that there are two properties that imply this can be done (and you can associated an image list with the control too). However I can't get it to work.

The properties are:

ShowImageInTextBox and
ShowImagesInComboListBox

Does anyone have any idea how to do this?

Thank you.

Ben.

Jeba S [Syncfusion]
Replied On August 14, 2007 12:35 PM UTC

Hi Ben,

Thank you for posting query to us.

You can use ComboBoxAdv.ImageList property to get/set ImageList for control and ComboBoxAdv.ImageIndexes property to set image Index for specified item.


//assign first image in ComboBoxAdv.ImageList to second item in items list.
this.comboBoxAdv1.ImageIndexes[2] = 0;


Then use ComboBoxAdv.ShowImageInTextBox property to show images in TextArea and use ShowImagesInComboListBox in the Listbox.

Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Tools.Windows/F67325/main.htm

Please refer this KB article which explains "How do I assign images to ComboBoxAdv items?"
http://www.syncfusion.com/support/kb/tools/Default.aspx?ToDo=view&questId=406

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,
Jeba.

Michael Sabin
Replied On October 19, 2007 08:36 PM UTC

Is there any way to set the images when you use a Datasource?

Jeba S [Syncfusion]
Replied On October 26, 2007 02:37 PM UTC

Hi Michael,

Sorry for the delay in response.

Yes. You can set the images when you use a Datasource. Pleas refer the below sample which shows the idea:
http://websamples.syncfusion.com/samples/Tools.Windows/F67325_New/main.htm

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

CONFIRMATION

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.

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

;