Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckedListBox problem

Status
Not open for further replies.

maxdamme

Programmer
May 21, 2007
10
IL
Hey!

I need some help!!!

I have a checkedlistbox with checkonclick property set to false. This means i can change check state only on doubleclick.

The problem is if an item is selected when i click it only once it change its check state, how is it possible and how do i fix this?

if i want to use doubleclick event i need to double click an item, but if it was selected before on doubleclick it changes check state two times and stays like it was before?

Is it a bug?

Guys i really need help on this, please!!!

Max
 
Well problem solved.
It is suppose to be this way according to documentation.
When item selected another click changes check state, nothing to do with doubleclick.
Thanx anyway!
 
Consider a ListView with Checkboxes - allows you to set the ItemActivate method. When the Item is then activated you can set the selectedItem.Checked = !selectedItem.Checked;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top