Advanced ComboBox in WinForms
-
Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick
-
Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick
You may like to investigate WPF where it is relatively easy (after the steep learning curve) to create such controls yourself. Take a look at some of the WPF articles here on CodeProject to see the sort of things that can be done.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
-
Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick
Hi, ComboBox (as well as ListBox): 1. holds and shows items of any type you choose, not just strings. 2. supports "user drawing", see DrawMode property and DrawItem event. Hence you could: - define your own little class representing such item, with all the properties you'd like; - paint it yourself in whatever format you like. I often do this with ListBox, and occasionally with ComboBox. And no, I don't have a published example around. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
-
Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick