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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Combobox Editing

Thread ID:

Created:

Updated:

Platform:

Replies:

89787 Sep 7,2009 06:57 AM UTC Sep 8,2009 11:24 AM UTC WinForms 2
loading
Tags: Tools
Allon
Asked On September 7, 2009 06:57 AM UTC

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

Mano J [Syncfusion]
Replied On 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

Allon
Replied On September 8, 2009 11:24 AM UTC

Thanks a lot, Mano.

Allon

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

;