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!

Proportionally resizing a form for different resolutions

Status
Not open for further replies.

gcarolan

Programmer
Jun 18, 2002
36
0
0
IE
Hello,

I have a form with 9 listboxes. On opening the form the listboxes flicker as it goes through the resize function while searching for the screen resolution.
Does anyone know how to prevent this or know how to resize the form for different resolutions.

Regards
gcarolan
 
It is possible to find out the resolution of the screen.

Just use this code.

Screen.Width \ Screen.TwipsPerPixelX & " x " & Screen.Height \ Screen.TwipsPerPixelY

this should give you the resolution in pixels.
 
And the flickering can be prevented by not showing the form before its size has been set.

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top