By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,275 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

Screen Size problems?

P: n/a
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?
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
> 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.
Nov 16 '05 #2

P: n/a
Hi,

following classes/properties may be useful for you:

System.Windows.Forms.SystemInformation.WorkingArea
System.Windows.Forms.SystemInformation.PrimaryMoni torSize
System.Windows.Forms.SystemInformation.PrimaryMoni torMaximizedWindowSize
System.Windows.Forms.SystemInformation.VirtualScre en

By using these Properties, you can set your forms size depending on
current screen size.

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?

Nov 16 '05 #3

P: n/a
> 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!
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.