Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing a form to fit screen size

Status
Not open for further replies.

jimmyclams

Programmer
Nov 16, 1999
6
US
How do you go about sizing a form at run time to fit a screen? When you do size the form to fit the screen, does it have to also be screen size in design mode?
 
I presume that you want the form to appear the same under different resolutions. For that you can call an API function to establish the resolution of the user's screen and then resize the controls on your form differently for every resolution. If that is what you want you can email me for code if you do not find that in manuals.<br>
<A HREF="mailto:pko@mweb.co.za">pko@mweb.co.za</A><br>
Peekay
 
You can resize a fixed, borderless form with Form1.Move 0, 0, Screen.Width, Screen.Height. You should use the API if you need to resize and reposition all of the controls to appear proportional on all machines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top