Screen Size problems?

  • Thread starter Thread starter Keith Smith
  • Start date Start date
K

Keith Smith

How do most people deal with different screen sizes? I was thinking about
creating certain Forms that are displayed when certain screen sizes are
used, but that sure does seem like an awful lot of work. And if I give my
controls some dynamic settings like maybe a dynamic width then they sure
would look funny on some screens. Another way to deal with it would be to
create my form so that it will fit in a 640x480 environment, but my form
would look funny and tiny on a larger screen.

Ideas anyone?
 
How do most people deal with different screen sizes? I was thinking about
creating certain Forms that are displayed when certain screen sizes are
used, but that sure does seem like an awful lot of work.

lol you can bet on this.
And if I give my
controls some dynamic settings like maybe a dynamic width then they sure
would look funny on some screens.

Not if done correctly. Have a look into the "Dock" and "Anchor" properties
of System.Windows.Forms.Control which a just for that task.
For example checkboxes and dataepickers should always stay the same size
where as lists and textboxes especially multiline ones should be resized to
fit the screen.
Another way to deal with it would be to
create my form so that it will fit in a 640x480 environment, but my form
would look funny and tiny on a larger screen.

I hate nothing more than forms that cannot be resized. You will not make
friends among users with very high resolutions.
 
Hi,

following classes/properties may be useful for you:

System.Windows.Forms.SystemInformation.WorkingArea
System.Windows.Forms.SystemInformation.PrimaryMonitorSize
System.Windows.Forms.SystemInformation.PrimaryMonitorMaximizedWindowSize
System.Windows.Forms.SystemInformation.VirtualScreen

By using these Properties, you can set your forms size depending on
current screen size.
 
Ideas anyone?
You should see how difficult it is in java/swing! :< The layout managers
are HORRENDOUS!!!!!!!!!!!!!!! :< At least with winforms you have the anchor
(and someone else mentioned dock? I HAVE to look into that now! :>). The
one thing I do like about java forms is by default they are resizeable, with
most of the Windows forms, they aren't. :< But that's slowly changing! I'm
one of those BIG resolution people who hate forms that don't resize. VS
lets you create them a lot cleaner than in Java! :> yahoo!
 
Back
Top