On Sat, 24 Feb 2007 13:33:28 +0100, GoGs <(E-Mail Removed)> wrote:
> On Sat, 24 Feb 2007 13:21:25 +0100, Göran Andersson <(E-Mail Removed)>
> wrote:
>
>> GoGs wrote:
>>> How can put checkBox in comboBox...
>>> Thanks
>>> --GoGs
>>
>> You can't. You have to build your own combobox for that.
>
> Hmmm, How? Any tutorial?
>
You have to use OwnerDraw and paint the checkboxes yourself as well as handle code for checking the box when a user selects the item.
The principle is the same as this article, but the drawing will be different. You have to draw the checkboxes, either manually or as an image.
http://www.csharphelp.com/archives/archive280.html
>>
>> What would a checkbox in a combobox be used for anyway?
>
> to save space...
>
Wouldn't a button opening a properties window be better?
--
Happy coding!
Morten Wennevik [C# MVP]