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
Printable View
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
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
Could you explain this a little more?Quote:
Originally posted by hshah
i have a form, and i want it to stretch all the way across the top of the screen
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?Quote:
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!
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. :)