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

Change default view depending on user's resolution setting

Status
Not open for further replies.

Robbo1974

Technical User
Jun 1, 2001
151
GB
Hi all,

In common with a lot of people out there it seems, I am having problems with sizing forms depending on screen resolution.

I have designed my main form to 800x600 spec and to fill the screen, so when I run it on a machine set to 1024x768 it all bunches up in the top left. I've tried a shrinker stretcher program and don't really like it so I would like to do things a different way:

If the user's resolution is set at 800x600 I want my main form to maximise on load and fill the screen as normal.

If the users's resolution is set at 1024x768 then I want the form to restore on load, so it acts as a floating form if you get my 'drift'. :)

If the user has their screen res set at 640x480 I would like them slapped with a wet fish :)

The problem is that I don't know how to get the screen res info.

Can anyone help? Robbo ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top