Checkbox problem 
Author Message
 Checkbox problem

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



Tue, 07 Sep 2004 17:59:55 GMT  
 Checkbox problem
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



Tue, 07 Sep 2004 18:20:15 GMT  
 Checkbox problem
Thanks



Quote:
> 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.



> > 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



Tue, 07 Sep 2004 20:35:04 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Checkbox PROBLEM!!!!!!!!!!!!!

2. checkbox problem with excel

3. locked checkbox problem

4. Checkbox problem

5. Checkbox problem

6. Checkbox problem

7. Checkbox Problem

8. Datagrid/checkbox problem

9. checkbox problem

10. Checkbox Problem

11. VB4 Listbox with checkboxes / Problem with ListView

12. Checkbox Problem

 

 
Powered by phpBB® Forum Software