How do form resizing

zimzon

Member
Joined
Oct 31, 2006
Messages
13
Programming Experience
Beginner
Dears.....

I want to resize the form according to the screen resolution. Further more, all objects in the same form also to be resized..


How can achieved this........?
 
first off i would design the form and set the all the control's Anchor and Dock properties to the way they need to be for resizing the form

then in the load event of the form i would use:
Screen.PrimaryScreen.Bounds.Width
Screen.PrimaryScreen.Bounds.Height

to set the form size according to the screen resolution
 
Sizing forms according to the resolution of the screen is a VERY BAD idea. If I increase my screen resolution it is because I want to fit more on it. If all my software simply resized to fill the space then what would be the point? I would immediately uninstall any software that tried to do that.
 
Back
Top