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:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0. 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
Additional query words: kbVBp500bug kbVBp600fix kbVBp kbdsd kbDSupport kbVBA kbControl
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |