|
-
Apr 5th, 2001, 10:04 AM
#1
How do I change the border style of a form during runtime?
-
Apr 5th, 2001, 10:13 AM
#2
You can't - it's read only !
All the API calls I looked at allow you to add borders / rectangles around a window, but I don't think there's any way you can set this ! 
Why do you need this ?
-
Apr 5th, 2001, 10:23 AM
#3
PowerPoster
Although the MSDN says so, but you can change the border style fo a form at run time. Just call the statement changing the borderstyle of the form repeatedly for 3-4 times, and it will change the border style. I have done this using the inbuilt BorderStyle property of vb.
-
Apr 5th, 2001, 10:53 AM
#4
Sorry, it didnt work. I need this to create a floating/docking toolbar window like in MS-Office and VB
-
Apr 5th, 2001, 11:03 AM
#5
PowerPoster
Doesn't this work
Code:
'assuming that the initial BorderStyle was 2
Private Sub Command1_Click()
Form1.BorderStyle = 0
Form1.Refresh
End Sub
Click the Button 3 - 4 times one after the other.
-
Apr 6th, 2001, 12:50 PM
#6
It does not work. In VB5, it even gives an error, and in VB6, nothing happens. Ther must be an API call 4 this!
-
Apr 6th, 2001, 12:56 PM
#7
PowerPoster
Strange, I had VB6 and it worked for me.
-
Apr 6th, 2001, 02:22 PM
#8
Fanatic Member
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Apr 6th, 2001, 02:23 PM
#9
Fanatic Member
but if you want a floating, docking toolbar, do it the windows way with a class avalible from www.vbaccelerator.com
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
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
|