Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Suppose you create a Form and set the Height Property to say 1000 and the Width Property to say 1000.

Then you use the VS Designer and draw a GUI.

I understand that, unless changed, sizing is based on Pixels.

If the form looks good on my monitor, but is then installed on a monitor with my higher resolution, will my form look smaller?

If installed on a wide monitor, and the user maximizes the form, i would imagine there is a lot of dead space?

Do Desktop application designers do anything about this behaviour?
Posted

1 solution

"will my form look smaller?" Yes, if the monitors are the same physical size. Try it: run your program, then change your monitor resolution. See what I mean?

"i would imagine there is a lot of dead space?" Oh yes! But there is a way round this: Try changing the Anchor property of your controls. That way they will stretch when your form does. Again: try it!

"Do Desktop application designers do anything about this behaviour?" in WinForms, generally no. Design your form to hold the information the user needs, not more. Too much information is seriously unhelpful - the user can't find what he needs if it is hidden in a lot of other info. Use Tab controls and so forth to group logical information together, and open new forms when necessary. In WPF you can scale things more easily - but that probably isn't what the user wants, either!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900