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. C# Override CheckedListBox

C# Override CheckedListBox

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
3 Posts 2 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
    ikurtz
    wrote on last edited by
    #1

    i need to override the base CheckedListBox behaviour. it is possible to check and uncheck a CheckedListBox without any code attached to it. i need to disable this behaviour so that i can implement custom code. any ideas? for example: if (ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, false); } if (!ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, true); } does not work because the controls default behaviour already does this anyway. hopefully you can understand my issue. thanks.

    L 1 Reply Last reply
    0
    • I ikurtz

      i need to override the base CheckedListBox behaviour. it is possible to check and uncheck a CheckedListBox without any code attached to it. i need to disable this behaviour so that i can implement custom code. any ideas? for example: if (ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, false); } if (!ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, true); } does not work because the controls default behaviour already does this anyway. hopefully you can understand my issue. thanks.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Have you looked at the CheckedListBox.CheckOnClick property? :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Happy New Year to all.
      We hope 2010 soon brings us automatic PRE tags!
      Until then, please insert them manually.


      I 1 Reply Last reply
      0
      • L Luc Pattyn

        Have you looked at the CheckedListBox.CheckOnClick property? :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Happy New Year to all.
        We hope 2010 soon brings us automatic PRE tags!
        Until then, please insert them manually.


        I Offline
        I Offline
        ikurtz
        wrote on last edited by
        #3

        yes i have. but default behaviour is toggle between states. what i dont want.

        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