flat style ComboBoxAdv

Hi,

I want to have a flat style combo box on my dialog forms. I am trying to create one using Sysncfusion ComboBoxAdv control. This control has DrawListPortion method for drawing drop down portion of a combo box. But this method provides access to the Edit Portion (through PaintEvenArgs’ ClipRectangle property) rather than drop down portion of the combo box. Is there anyway I could get access to the drop down portion so that I can draw my items in there?


Thanks,
Ranu

3 Replies

RF Rashidha F Syncfusion Team July 10, 2007 02:35 PM UTC

Hi Ranu,

Thanks for using Syncfusion Products.

If your intention is to get access and customize to the drop down portion of the ComboBoxAdv means please use comboBoxAdv1_SelectionChangeCommitted event,DropDownButton property in your application.

Please refer the attached sample.

http://websamples.syncfusion.com/samples/Tools.Windows/F63761/main.htm

The above sample which illustrates how to add a new comboBoxAdv item using comboBoxAdv1_SelectionChangeCommitted Event and use of DropDownButton property.

Please let me know if this helps.

Thanks and Regards,
Rashidha.


RG Ranu Gupta July 10, 2007 03:43 PM UTC

Hi Rashidha,

Thanks a lot for the quick reply.

I think I didn’t explain my problem clearly. Actually, I want to draw some geometric figures in the drop down list. For example, instead of having ‘circle, square, triangle’ strings, I want to draw these figures in the list. When I use ComboBoxAdv.DrawListPortion(PaintEventArgs e) method, it draws the figures in the edit portion of the combo box. But these figures should appear in the drop down portion. How can I do that?

Thanks,
Ranu


RF Rashidha F Syncfusion Team July 11, 2007 04:04 PM UTC

Hi Ranu,

Thanks for the update.

Please refer the attached sample which illustrates how to display image near at comoboxItem.

http://websamples.syncfusion.com/samples/Tools.Windows/F63761_1/main.htm

Please let me know if this helps.

Thanks and Regards,
Rashidha

Loader.
Up arrow icon