PRB: Duplicate Control Boxes in MDIForm When Using Status Bar (201502)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q201502 SYMPTOMS
When you are working with a Visual Basic project that contains a MDIform, and there are status bars on both the MDIForm and its child form, in order to display only one status bar when the active child form is maximized, the visible property of the status bar on the MDIForm is set to False. When a child form is open and maximized and another child form is opened, two sets of control boxes display.
CAUSE
This problem is caused by the incorrect calculation of the frame size. When the active child form is maximized, the MDIForm's status bar is not visible. However, when another form is opened and displayed, the status bar on the MDIForm is displayed and then hidden again, which causes the incorrect calculation of the frame size.
RESOLUTION
Prevent the Visible property of the status bar on the MDIForm from being changed to be True when at least one child form is maximized.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbMDI kbprb kbStatBar KB201502 |
---|
|