PRB: Form With Menu Displays Border With Borderstyle Set to None (174214)
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, 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 Q174214 SYMPTOMS
A Form with a menu displays a border and a titlebar when the BorderStyle
property of the form is set to 0-None. The Form displays a border even when
the Menus it contains are not visible.
CAUSE
Visual Basic requires a Form with a Menu to have visible borders.
RESOLUTION
Create a second Form to contain your popup menu and use the PopupMenu
method in the first Form to access the Menu of the second Form.
STATUS
This behavior is by design.
REFERENCES
PopupMenu method topic in the Online Help
(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by
Arsenio Locsin, Microsoft Corporation
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbprb KB174214 |
---|
|