PRB: Hiding a Modal Form Removes Its Modal AttributeID: Q132680 The information in this article applies to:
SYMPTOMSWhen a modal form is displayed and then hidden, it looses its modal attribute. That is, when the form is shown, the user can access other windows if the form was hidden by clicking Hide on the Window menu or by using the HIDE WINDOW command.
RESOLUTIONYou can prevent users from hiding the form from the interface by removing the Hide option from the Window menu with this command:
If you are hiding the form under program control, use the Hide and Show
methods of the form instead of the HIDE WINDOW and SHOW WINDOW commands.
Using these methods maintains the modality of the form.
STATUSThis behavior is by design. It avoids the problem of not being able to access anything when the modal form is hidden.
MORE INFORMATION
Steps to Reproduce BehaviorRun the following example code to duplicate the issue. It also presents an alternative. To run this sample code, copy and paste it to a program file; then run it.
Additional reference words: 3.00 VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
Last Reviewed: July 31, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |