PRB: Visible Controls on MDIChild Report as Invisible (129638)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q129638 SYMPTOMS
If there are two MDI child forms that contain (visible) controls, and one
of the forms is maximized and then closed, the visible properties for any
controls on the remaining MDI child form will report False from the Resize
event of that form.
CAUSE
Windows hides the MDI client briefly during a restore or close of a
maximized MDI child. As a result, the other child form underneath the just
closed child is indeed invisible. The status of the other MDI child form's
controls is thus just being correctly reported.
RESOLUTION
This is a limitation of the implementation of MDI forms. However, to check
the other MDI child form controls' Visible properties correctly, a timer
control (with its Enabled property set to False at Design Time) can be
enabled from the resize event of this other MDI child form. Checking the
value of the control's Visible property from the timer event should result
in a value of True.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb KB129638 |
---|
|