itemcheck event, don't raise how?

dubem1

Newcomer
Joined
Dec 5, 2002
Messages
20
Is there a way to avoid the itemCheck event to be raised?

I check some items by programmtion at the opening of my form. I don't want to itemCheck event to be raised when I check items by programmation. I want this event to be raised only on a mouse click.

How?

I try beginUpdate and EndUpdate with no luck!

Thanks
Martin
 
Create a boolean value and set it to True whenever you want to
"skip" the event. Then, as the first line in the event, and check if
the value is true. If it is, then set the value to false again and exit
the sub (Exit Sub in VB, return in C#).
 
Back
Top