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.

Combobox Editing

Thread ID:

Created:

Updated:

Platform:

Replies:

89787 Sep 7,2009 02:57 AM Sep 8,2009 07:24 AM Windows Forms 2
loading
Tags: Tools
Allon
Asked On September 7, 2009 02:57 AM

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 06:30 AM

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 07:24 AM

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.

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.

;