Wim,
If you're not already using it for something else, use the .Tag
property on the checkbox to indicate that it should ignore rogue
"Click" Events, something like
Sub Check1_Click( ...
If Me.Tag = "IGNORE" Then Exit Sub
. . .
End Sub
Then, in code where you don't want "Click"s to happen, set
the .Tag property first, as in
Sub xyz( ...
. . .
With Check1
.Tag = "IGNORE"
.Value = whatever
.Tag = ""
End With
End Sub
HTH,
Phill W.
Quote:
> Hi ,
> Everytime I change the value of my checkbox in my code , module or
form
> procedure.
> Visual basic 6 always call the even onclick from that checkbox. How
can I
> disable this because it is really anyone me !
> Thank you for your help
> Greetz Jazzboy