Windows Develop Bookmark and Share   
 index > Windows Forms General > Custom drawn combo box
 

Custom drawn combo box

I have a combo box which lists images to display in a medical program. I need to sort them in a custom order ( easy ) and show parts of the names in bold. As there is no hard and fast rule, I am doing this:

Thorasic @Spine@ VD

where the bit in @@ is bold. I have set up my combo box to draw the text in bold, but I can't figure out how to get the selected item textbox to also show the item in this format. Any suggestions will be met with great joy.

cgraus  Thursday, July 20, 2006 11:04 PM
Does the text area need to be user editable? If not setting the ComboBox's DropDownStyle to DropDownList wouldallow the DrawItem event to paint that area.
Brendan Grant  Thursday, July 20, 2006 11:49 PM
Does the text area need to be user editable? If not setting the ComboBox's DropDownStyle to DropDownList wouldallow the DrawItem event to paint that area.
Brendan Grant  Thursday, July 20, 2006 11:49 PM

OK, I'll try that, thanks.

cgraus  Thursday, July 20, 2006 11:53 PM

You can use google to search for other answers

Custom Search

More Threads

• [help] Limiting mouse position...
• WebBrowser control in VB.Net
• Internet Informations
• ComboBox OnMeasureItem doesn't influence height of DropDownList?
• Input Dialogue
• getting track info from axmediaplayer
• Read this before posting a question about C# or VB.Net controls!
• How to use PassThru sample in DDK for packet filtering based on IP address ??
• MaskedTextBox
• what was undone