How to Create a Form with no Title Bar in VB for Windows (83349)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q83349 SUMMARY
To create a Microsoft Visual Basic for Windows form with a border but
with no title bar, the Caption property of a form must be set to a
zero-length string; the BorderStyle property must be set to Fixed
Single (1), Sizable (2) or Fixed Double; and the ControlBox, MaxButton
and MinButton properties must be set to False (0). If any text (including
spaces) exists for the Caption property or if the ControlBox, MaxButton,
or MinButton property is set to True, a title bar will appear on the form.
NOTE: Setting the BorderStyle property to None (0) will always result in a
form with no title bar.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB83349 |
---|
|