BUG: ActiveForm Returns Wrong FormLast reviewed: September 25, 1997Article ID: Q174212 |
The information in this article applies to:
SYMPTOMSWhen the ActiveForm property of the Screen object is queried, the wrong form is returned as the active form. This behavior occurs after setting the enabled property of a Command button on another form to False. The second form is listed as the active form, when the form with the calling code is actually the active form.
RESOLUTIONTo work around this problem, insert the following line of code immediately after the code that sets the enabled property of the button:
Me.SetFocus STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThis behavior occurs only the first time the enabled property of the button is set to False. During subsequent attempts or if the button's enabled property is initially False, the problem does not occur.
Steps to Reproduce Behavior
Keywords : VBKBCtrl VBKBInt VBKBObj VBKBVB Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |