Windows Develop Bookmark and Share   
 index > Windows Forms General > another stupid combobox q
 

another stupid combobox q

Can i get a Columnheader in a combobox ?

i gues not , just curious

Remco


RemcoJVG  Monday, October 17, 2005 12:54 PM
I'm not sure what you mean but I would say no. The type of data in your combobox should be defined by the interface, maybe a label beside the combobox. Or you can set a 'default' value that is not an item by setting the .Text
ThE_lOtUs  Monday, October 17, 2005 6:49 PM
You could always do some fancy custom painting in your dropdown, but having a ListView-type dropdown doesn't sound trivial. Maybe you could create a new ComboBox-derived class with your own popup Form containing a ListView, and show that from within your ComboBox when the user clicks the drop button or presses the F4 button.
Anders Tornblad  Monday, October 17, 2005 8:17 PM
 Anders Tornblad wrote:
You could always do some fancy custom painting in your dropdown, but having a ListView-type dropdown doesn't sound trivial. Maybe you could create a new ComboBox-derived class with your own popup Form containing a ListView, and show that from within your ComboBox when the user clicks the drop button or presses the F4 button.

I did preciously something with a grid(multicolums) in a popupform, and works Ok.
As a matter of fact i got a few of combobox-ish controls based om the same model.
The only problem with that is that the popup form steals the focus, wich make autocomplete (almost) impossible to implement, and that is in this case something i need.
So i made a combobox that is ownerdrawn. everything work fine , autocomplete the multiple colums, databinding etc. The only thing that is missing are the columnheaders.

Remco
RemcoJVG  Tuesday, October 18, 2005 8:40 AM

You can use google to search for other answers

Custom Search

More Threads

• Psychedelic richTextBox contents?
• How can I align element inside a TablePanelLayout without getting crazy ?
• how to connect mysql inside in excel
• How to make virtual text in the Textbox.
• closing windows forms..
• Creating Drag and Drop Controls in .Net (C# Winforms)
• Weird Behavior in VSTO
• Pointer getting trapped in tab control (dev environment)
• Problem with DataGridView autoscroll. Please help.
• How to add shape to status bar?