BUG: Hidden MDIChild Form Can Still Be Active FormLast reviewed: October 9, 1996Article ID: Q150195 |
The information in this article applies to:
SYMPTOMSUnder 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.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.
WORKAROUNDIf 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.Hidethe following code accomplishes the same objective but avoids the problem described above:
Me.Hide Form3.Show MORE INFORMATION
Steps to Reproduce Problem
Private Sub Command1_Click() Me.Hide Form3.Show End Sub |
Additional reference words: 4.00 vb4win vb432
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |