Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does one prevent a form from being deactivated?
Message
 
To
03/10/2003 14:38:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00834295
Message ID:
00834958
Views:
28
Hi Alan,

Obviously, it can be easily worked around with adding THISFORM.HIDE() into Form.QueryUnload() event method.
That also should be called if one wants to release the form with the Form.Release() method.

The sample only demonstrates the principle of Modal/Modeless switching on the fly.


>One unfortunate problem with the code that needs to be worked around: Run the code, click the 'modal' button once, and then close the form using the 'X' close control.
>
>Alan
>
>>>>Can you set the WindowType to Modal?
>>>>
>>>>Wan
>>>
>>>Not on the fly.
>>
>>Actually you can do it on the fly.
>>
>>FAQ#7921 "How can I make my form Modal/Modeless on the fly."
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform