Removing Check Boxes From CheckedListBox
-
Hi I have created a user control which contanins a checkedListBox control.Now i somtime wants check boxes in list and some time not.So i want to set any property which can hide/show checkboxes. Any body have Idea how this can be done
-
Hi I have created a user control which contanins a checkedListBox control.Now i somtime wants check boxes in list and some time not.So i want to set any property which can hide/show checkboxes. Any body have Idea how this can be done
You can make it in code, so when you need check boxes just make a control of kind CheckedListBox, otherwise make it a regular ListBox. (As CheckedListBox doesn't contain any property to hide the checkboxes). Otherwise you may create a custom control of you own to do all that stuff.
------------------------------
"About : Islam ..." -
Hi I have created a user control which contanins a checkedListBox control.Now i somtime wants check boxes in list and some time not.So i want to set any property which can hide/show checkboxes. Any body have Idea how this can be done
In the past I've used the ListView control to do this very thing. There is a handy property there called "CheckBoxes" that when enabled shows check boxes per row entry. To disable the check boxes, just set the "CheckBoxes" property to false. Of course you will have to deal with re-draw issues. Phil