Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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#).

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...