|
-
Nov 29th, 2009, 12:41 PM
#1
Thread Starter
Fanatic Member
Change Forms borderstyle?
Hi guy's
I am wondering how can i change a Forms border style to "None" By the click of a command button?
I am trying "Form1.borderstyle ="0"
But nothing is happening when i press the command button
Thanks,
-
Nov 29th, 2009, 12:46 PM
#2
Re: Change Forms borderstyle?
Toggling a border style during runtime requires API calls using SetWindowLong and SetWindowPos (to update change).
You can have potential problems. Once border style is zero, you don't have anyway to close the form unless you provide a button to do that; one cannot move/size the form unless you provide a way to do that too. There are other undesirable effects with borderless forms also.
The reason you can't change the borderstyle by changing its property is simply that some properties are desgin-time only and cannot be changed at runtime thru VB.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|