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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CHANGE THE SIZE OF THE FORM AT RUN TIME FRO DIFFRENT DISPALYS

Status
Not open for further replies.

IrinaK

Programmer
May 21, 2001
33
0
0
US
Hello!
I need to change the size of the form at run time in VB6.
Different users have different displays.
Any idea?
Thank you.
 
You can use the Screen object. The code below will center a form. If you need to resize, change the height and Width properties of your form relative to the screen
frmMe.Left = ((Screen.Height - frmMe.Height) / 2)
frmMe.Top = ((Screen.Width - frmMe.Width ) / 2)
 
You may need to take into account the Screen Resolution as well. An excelent articler on how to achieve this can be found at: _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
The Screen object properties adjust to and are based on the resolution.
 
Thread222-59642 offers addtional links! _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
Thanks for everybody.
I've got the idea.
I am trying to do what I need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top