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.

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...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.