FIX: Hidden MDIChild Form Can Still Be Active Form (150195)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q150195 SYMPTOMS
Under certain circumstances, an MDIChild form can be hidden but still be
the active form. This occurs when an MDIChild form is shown before hiding
the active MDIChild form. The latter MDIChild form stays active although it
is invisible. Clicking in an area of the invisible form does not activate a
visible form behind it because the input is sent to the invisible form.
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.
WORKAROUND
If you are going to hide an MDIChild form and then show another form, it is
important to hide the existing form first, and then show the new MDIChild
form.
For example, instead of the code:
Form3.Show
Me.Hide
the following code accomplishes the same objective but avoids the problem
described above:
Me.Hide
Form3.Show
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbbug kbfix KB150195 |
---|
|