PRB: Modal Form in Form Set Behaves as a Modeless FormLast reviewed: April 30, 1996Article ID: Q131167 |
The information in this article applies to:
SYMPTOMSA modal form contained in a form set does not behave as a modal form. In other words, it is possible to activate other windows when this form has the focus.
CAUSEThe form is contained in a non-modal form set. The modality of the form set takes precedence over the modality of a form it contains.
WORKAROUNDForms that are to be modal cannot be in a form set that is modeless. Place modal forms in separate form sets, or do not add modal forms to form sets. Note that you can cycle through forms that are included in a modal form set, but cannot interact with any window that is not contained in the form set.
STATUSThis behavior is by design.
MORE INFORMATIONUse the Parent property of the form object to verify that it is contained in a form set. For example:
IF TYPE('Thisform.parent')="O" ? "The form is contained in a Form set" ELSE ? "The form is not contained in a form set" ENDIF Steps to Reproduce Behavior
REFERENCESIt is also possible to affect the modality of a form with the SHOW method. For more information about the SHOW method and modal forms, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q130308 TITLE : PRB: Using SHOW(1) Does Not Make a Form in a Formset Modal |
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |