PRB: Error 371 or 5 Occurs When Using the Show MethodLast reviewed: October 7, 1997Article ID: Q174686 |
The information in this article applies to:
SYMPTOMSWhen the MDI child form uses the Show method to open a form, you may receive the following error:
Run-time Error '371': The specified object can't be used as an owner form for Show().When the MDI child form uses the Show method to open an MDI Child form, you may receive the following error:
Run-time Error '5': Invalid procedure call or argument. CAUSEThese errors occur if an MDI child form uses the Show method and specifies that it owns the form to display. An MDI child form cannot own another form.
STATUSThis behavior is by design.
MORE INFORMATIONWhile you can specify the owner of a form as one of the parameters in the Show method, you cannot designate an MDI Child form as an owner of another form.
Steps to Reproduce Problem
|
Additional query words: mdiform mdichild
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |