The information in this article applies to:
SYMPTOMSIn the versions of Microsoft Visual Basic listed at the beginning of this article, if an MDI Form's Enabled property is set to False before a CommonDialog (such as ShowOpen) is displayed, the focus does not return to the MDI form, even if it is set programmatically. The subsequent behavior is that instead of giving the MDI form the focus, focus is given to the last window that had focus before the MDI form. RESOLUTION
The current workaround for this confirmed bug is to not set the MDI
Form's Enabled property to False. The CommonDialog is Modal and
automatically disables the MDI Form because of its Modal nature. Thus
the workaround code for the code example in this article is:
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 INFORMATIONSteps to Reproduce Behavior
Additional query words:
kbVBp300bug kbVBp400bug kbVBp500bug kbVBp600fix kbVBp kbdsd kbDSupport
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |