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. Image for the cookie policy date
close icon

Combobox Editing

Hello, everyone

I'd like to know, how to change the background color of the little upside down arrow of any combobox available.

Thanks in advance,
Allon

2 Replies

MJ Mano J Syncfusion Team September 8, 2009 10:30 AM UTC

Hi Allon,

You can handle comboboxAdv's Paint event and change the arrow color as follows:


comboBoxAdv1.Paint += new PaintEventHandler(comboBoxAdv1_Paint);

void comboBoxAdv1_Paint(object sender, PaintEventArgs e)
{
Graphics grph = e.Graphics;

Point[] curvePoints = DropDownButton.GetComboDropDownBorderBounds(this.comboBoxAdv1.DropDownButton.Bounds);

e.Graphics.DrawPolygon(Pens.Blue, curvePoints);
e.Graphics.FillPolygon(Brushes.Blue, curvePoints);
}


Thanks,
Mano


AL Allon September 8, 2009 11:24 AM UTC

Thanks a lot, Mano.

Allon

Loader.
Live Chat Icon For mobile
Up arrow icon