Click to See Complete Forum and Search --> : ListBox whose style is "CheckBox"


michi
July 9th, 2001, 03:23 PM
Hi there,

I found that it doesn't work perfectly when the style property of ListBox is set to CheckBox. What I mean is when I click on one item in the list, the check box before this item won't be checked until I click right on it. Is there any way to check it automatically when click the item?

In addition to this:
List1.Selected(intIndex)=True

I wonder if there is there any property like:

***.Checked=True

Thanks.

Regards,

Michi
MCSE, MCDBA

praveen b p
July 10th, 2001, 02:16 AM
Hello Michi,

As you said when we click on one item in the list, it will not be checked but when you double click checkbox will be get selected, (instead of clicking on the checkbox).

Following set of events will be generated when you clicked on the item in the list box for the First Time:
Click event of the List box will be generated.

Following set of events will be generated when you clicked on the same item in the list box for the second time:
Firstly ItemCheck event of the List box. Secondly Click event of the List box will be generated..

bpp

michi
July 10th, 2001, 10:56 PM
Thanks. I will tell my customer to use double click instead.

Regards,

Michi
MCSE, MCDBA