Jump to content
  • Advertisement
Sign in to follow this  
stromchin

Rant about checkedlistbox not having multiple selection

This topic is 2578 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Since this is a kind of a rant, sorry if this is the wrong forum.

ok, so I've been making this tool, and now I thought, hey, let's also activate multiple selection in this checkedlistbox, so that the artist can move more than one item at a time. or set the X values of more than one image at a time, or whatever.

SelectionMode -> MultiSimple
"Multiple selection is not supported on checkedlistboxes"
well, so now what do I do?

imagine photoshop, with layers. Each item in the checkedlistbox is a layer.
if you check it, then it's rendered, if not, it's not rendered. Pretty useful right?
and selecting more than 1 layer at a time? also very useful!

but no, I would have to implement some kind of archaic ?? next to the name, and then if they click on the first x pixels of the item, activate it or deactivate it.

Question is, why the hell wouldn't it support it?
it's derived from a listbox, and listbox can accept multiple selection

Share this post


Link to post
Share on other sites
Advertisement
I suppose your using the .Net CheckedListBox object. If not forget about this post.

While its true that you cannot select several items at once in that control, you can still check several items. Then you can retrieve the checked items using the CheckedItems property. There is even a ItemCheck event if you want to react to any change to an item's change status.

Share this post


Link to post
Share on other sites

I suppose your using the .Net CheckedListBox object. If not forget about this post.

While its true that you cannot select several items at once in that control, you can still check several items. Then you can retrieve the checked items using the CheckedItems property. There is even a ItemCheck event if you want to react to any change to an item's change status.


I know I know... but I need the checks AND the selections. :(
I don't know how I'll end up doing it in the end

Share this post


Link to post
Share on other sites
You could use a ListView instead and set the view to Details. It has a Checkboxes property that put a checkbox on each row. Then you can access selected items (via Ctrl or shift) with SelectedItems properties and checked items with the CheckedItems property.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!