FIX: MDI Child Windows Control Box Affected by Parent Toolbars (154518)
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
- 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 Q154518 SYMPTOMS
Placing a Windows Common Control's Toolbar on an MDI Parent form affects
the functionality of the Control Box on MDI Child windows under Windows NT
3.51. Under normal circumstances, double-clicking a Control Box closes a
window as if the user had clicked once to drop down the menu and then
selected "Close." When the Toolbar is placed on a Parent window under
Windows NT 3.51, double-clicking the Control Box drops the menu but doesn't
dismiss the window.
This problem does not occur with Visual Basic under Windows 2000, Windows NT version 4.0, Windows 95, Windows 98, or Windows Me.
RESOLUTION
If you add a PictureBox control to the Form, and Cut and Paste the Toolbar
onto the PictureBox, the problem is resolved. When you run the code after
doing this, the Control Box behaves in the expected manner.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem was corrected in Windows 2000.
REFERENCES
The Visual Basic Programmer's Guide, Chapter 14.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbBug kbControl kbfix KB154518 |
---|
|