|
-
Jan 4th, 2004, 05:30 AM
#1
Thread Starter
Addicted Member
form fitting the screen
i have a form, and i want it to stretch all the way across the top of the screen, and then the command buttons (5 of them) to centre themselves on the form?
any ideas?
i need the code or etc for this!
thanks
-
Jan 4th, 2004, 06:38 AM
#2
Fanatic Member
With some code inside the Form_Resize event. I've put all controls inside a Frame. You can also use a PictureBox, or no control at all (but in that case you'd have to position every control by itself).
VB Code:
Private Sub Form_Resize()
Frame1.Left = Me.Width / 2 - (Frame1.Width / 2)
End Sub
Author for Visual Basic Web Magazine
-
Jan 4th, 2004, 07:34 PM
#3
-
Jan 5th, 2004, 04:44 AM
#4
Thread Starter
Addicted Member
if u go to www.studentforums.hostultra.com/Computing.zip
and u run my program, u will see the main form come up after the login with password "password"!
that main form, i want stretched all the way across the top!
-
Jan 5th, 2004, 10:01 AM
#5
Originally posted by hshah
if u go to www.studentforums.hostultra.com/Computing.zip
and u run my program, u will see the main form come up after the login with password "password"!
that main form, i want stretched all the way across the top!
Stretched or stretchable?
There were way too many errors while loading your project, and I'm too (as they say) "arsed" to fix them. Please load a correct ZIP.
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
|