Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem when setting button visible to False
Message
From
04/06/2008 10:15:16
 
 
To
04/06/2008 10:09:22
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01321584
Message ID:
01321592
Views:
20
This message has been marked as the solution to the initial question of the thread.
>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.

I would suggest to take focus off the button explicitly, i.e. OtherControl.SetFocus before changing Visible property.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform