Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Form BorderStyle in code

Status
Not open for further replies.

HobbitK

Technical User
Jan 14, 2003
235
US
Hi everyone ...
If I use this code in the form Load,Paint, Initialize,Activate, or GotFocus events
Me.BorderStyle = 0
The form actually loads with whatever is set in the properties window during design time. I also have tried using the VBConstants instead of the number.
MSDN gives code syntax for Forms, so I cannot understand why that would not work.
Any ideas?
Thanks
Michael
 
From VB Help:

BorderStyle Property

Returns or sets the border style for an object. For the Form object and the TextBox control, read-only at run time.


Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"Why does my program keep showing error messages every time something goes wrong?"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top