checkedListBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonas Knaus

    #1

    checkedListBox

    hi there

    i was wondering if it is possible to set a checkedListBox in a state where i
    can not change the
    checkboxes but still select the lines (entry with the name for the
    checkbox).
    when i set the control to enabled=false, te everything is diabled but i only
    want the checkboxes
    to be disabed because i use them only to show information but i would like
    to fire an vent when
    someone steps around the different entries (lines)...

    i hope you understand my not very good english
    does someone has an idea how to solve my problem ??

    thank you very much for helping me out !!!!

    cheers
    jonas


  • Paul E Collins

    #2
    Re: checkedListBox

    "Jonas Knaus" <nospam_jonas_k naus@hotmail.co m> wrote:
    [color=blue]
    > i was wondering if it is possible to set a checkedListBox
    > in a state where i can not change the checkboxes but still
    > select the lines [...][/color]

    Just cancel any changes as they happen.

    private void MyCheckedListBo x_ItemCheck(obj ect sender,
    System.Windows. Forms.ItemCheck EventArgs e)
    {
    e.NewValue = e.CurrentValue;
    }

    P.

    --



    Comment

    Working...