FIX: Focus Doesn't Return to MDI Form After Modal Form Is Closed (177163)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q177163 SYMPTOMS
An MDI child form shows a second non-MDI form modally. The second form
displays a message box (or another modal form). When you close the second
form after dismissing the message box, the focus does not return to the MDI
child form as expected. The focus returns to the MDI child form only when
the second form does not display a message box (or a modal form).
RESOLUTION
To work around this problem, set the focus to the MDI child form after
you've shown the non-MDI child. The workaround is illustrated in the MORE
INFORMATION section of this article.
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug kbfix KB177163 |
---|
|