|
-
July 12th, 2001, 11:13 AM
#1
Whats the code to maximize a form?
Hi,
I have a form, and it is cluttered with various buttons, images, etc.
When I click `Run` it doesn`t open up full size.
Can anyone tell me the code for making the form open up to its maximum size upon running the code.
Thanks
Mark
-
July 12th, 2001, 11:20 AM
#2
Re: Whats the code to maximize a form?
If you want it to run full-screened, set the Window State property of the form to 2 - Maximized. If you don't necessarily want it maximized but still be big enough to hold all your controls at once, try playing with the BorderStyle property. Making it Fixed Single will display the window as the size you designed it in. That mode also disables the Min and Max buttons by default so you'll have to re-enable them with the MinButton and MaxButton properties. Hope that helps!
Jeff
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
|