Combo and checkbox

  • Thread starter Thread starter GoGs
  • Start date Start date
GoGs said:
How can put checkBox in comboBox...


Thanks
--GoGs

You can't. You have to build your own combobox for that.

What would a checkbox in a combobox be used for anyway?
 
Hi,
How can put checkBox in comboBox...


Thanks
--GoGs

Use WPF

<ComboBox>
<CheckBox>
Hello
</CheckBox>
</ComboBox>

HTH,
Laurent
 
You can't. You have to build your own combobox for that.

What would a checkbox in a combobox be used for anyway?

I think the OP wants a ComboBox with the same functionality as CheckedListBox,
but as you say there is no such thing as a CheckedComboBox. In fact, I don't
believe I've ever seen a ComboBox used in that way. It wouldn't make much
sense, would it?

Good luck with your project,

Otis Mukinfus

http://www.otismukinfus.com
http://www.arltex.com
http://www.tomchilders.com
http://www.n5ge.com
 
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
to save space...

Wouldn't a button opening a properties window be better?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top