checkedListBox

  • Thread starter Thread starter Jonas Knaus
  • Start date Start date
J

Jonas Knaus

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
 
Jonas Knaus said:
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 [...]

Just cancel any changes as they happen.

private void MyCheckedListBox_ItemCheck(object sender,
System.Windows.Forms.ItemCheckEventArgs e)
{
e.NewValue = e.CurrentValue;
}

P.
 
Back
Top