Hi Dmitry,
I wouldn't write code into .Click(). Use BINDEVENTS()...
BINDEVENTS(Thisform.cmdMyButton,[Click],Thisform,[myButtonHandler])
Thisform.myButtonHandler:
Thisform.cmdMyButton.Visible = .F.
...
>Good morning,
>
>I have a weird problem (I have been struggling with it all morning) with a button Visible property. Here is what happens:
>
>In the Click() of this button I set visible of the button to .F.
>
>
>this.visible = .F.
>
>
>But then when I try to click on
any place of the form a certain completely unrelated method fires. As if there is an invisible form in front of the actual form.
>
>How can I find out what causes this weird behaviour.
>
>Thank you in advance for any suggestions.
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011