0

Hi,

I have a custom combobox(say comboboxEX) derived from System.Windows.Forms.ComboBox.
OnPaint() event I have some background color and styles for the combobox. Every thing works fine.

My problem is, I can't set background color when DropDownStyle is "DropDown" and Enabled = false.
But it workes when DropDownStyle is "DropDownList" and Enabled = false.

How do I set background color for "DropDown" when it is in disabled state?
Any help will be appreciated.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by kaizen202
0

Hi All,
I had solved it.

The editbox of combobox was replaced with a rich text box when the style is "DropDown". While disabling the control, the rich textbox will be displayed as white color.

I solved it by hiding the rich textbox.

Thank you...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.