Each element in a Visual Basic 6 (VB6) application has a "borderstyle" property. The property draws a thin line around the element, including a button element. To remove the border, you set the borderstyle property to "0." Setting the border width to "0" pixels means no border is drawn when the VB6 form displays on the user's desktop.
- Skill level:
Other People Are Reading
Click the Windows "Start" button, and select "Visual Basic" in the "All Programs" group. Click "Visual Basic 6" to open the compiler software.
Click the "File" menu item followed by "Open." Double-click your Visual Basic 6 application file in the dialogue window to open it in the compiler.
Double-click the form that contains the button you want to edit. When the form loads in the designer, double-click the button you want to edit.
Type the following code in the code editor:
button1.BorderStyle = 0
Replace "button1" with the name of the button you want to edit. Setting the style to "0" displays no border around the control.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for