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

Resizing a form

Status
Not open for further replies.

Vic88

MIS
May 29, 2000
76
JM
How cound I do to Dynamically Size Forms and controls to Fit different Screen Resolution ?
 
what i do is use the move function. and figure out where I want my objects on my form located then figure out the math. I'm sure there is a better way.. but that's how i do it.
move (left as Single, top as Single, width,height)
 
Ouchers,

I hope you have a target set of resolutions, and perhaps a way to dynamically update your list and settings.

That out of the way, Look at the GetDeviceCaps API call and follow your nose.



Wil Mead
wmead@optonline.net

 
Use your form_resize event eg:

Private Sub Form1_Resize
Form1.move 500, 500, 2000, 2000
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top