Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Removing Check Boxes From CheckedListBox

Removing Check Boxes From CheckedListBox

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    idreesbadshah
    wrote on last edited by
    #1

    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

    M P 2 Replies Last reply
    0
    • I idreesbadshah

      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

      M Offline
      M Offline
      MoustafaS
      wrote on last edited by
      #2

      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 ..."

      1 Reply Last reply
      0
      • I idreesbadshah

        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

        P Offline
        P Offline
        pbraun
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups