Windows Develop Bookmark and Share   
 index > Windows Forms General > ComboBoxRenderer.DrawTextBox doesn't look right when disabled
 

ComboBoxRenderer.DrawTextBox doesn't look right when disabled

I am making a user-control version of a ComboBox and using the ComboBoxRenderer to draw the buttons and such. I am also using it to draw the background of the control. When my control is disabled, I draw usingVisualStyles.TextBoxState.Disabled. The problem is that the colors don't match the colors used when an normal combobox is disabled. Anyone have any ideas?
Wil Burton  Friday, February 27, 2009 5:21 PM
Hard to tell. ComboBoxRenderer doesn't render anything resembling a combobox on Vista. The VisualStyles namespace wasn't updated for Vista, not sure if it's a good idea to use it right now...
Hans Passant.
nobugz  Friday, February 27, 2009 8:14 PM
Hard to tell. ComboBoxRenderer doesn't render anything resembling a combobox on Vista. The VisualStyles namespace wasn't updated for Vista, not sure if it's a good idea to use it right now...
Hans Passant.
nobugz  Friday, February 27, 2009 8:14 PM

You can use google to search for other answers

Custom Search

More Threads

• How to disable mouse events for a textbox control without setting Enable= false property
• Cannot display image in menuItem Programmatically can you help
• using CMD.exe in form
• How to increase space between rows of text in RichTextBox
• Copy and Paste in Textbox
• Why Method gets called twice????
• Directory.GetFiles(obj.SelectedItem.Path, "*.vc1")
• Chage Image Shapes
• Passing Colour From Form to Form
• Web browser document text