CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2009
    Posts
    15

    Question C# Override CheckedListBox

    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.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: C# Override CheckedListBox

    Can you explain further? What does CheckedListBox do that you do not like?

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: C# Override CheckedListBox

    Subscibing to CheckedChanged event is not enought?
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured