473,387 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Screen Size problems?

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
3 3878
> 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
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MSE | last post by:
How can I make a website that adapts to the screen resolution? I would also like to include a picture that stretches when the screen res. increases, if you know what I mean.
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
64
by: Dave | last post by:
A friend of mine pointed out the other day that certain elements on my web site are too small. But in most of what I publish, fonts are at default size or smaller, and my images are easy to see. I...
9
by: Les Juby | last post by:
I understand that there are several ways to effectively control the browser delivery of HTML to make the most effective use of the different screen resolutions today. (And in the foreseeable...
9
by: lauren quantrell | last post by:
Is there a way to determine the size of the user's screen minus the Windows task bar? I am trying to maximize an Access popup form that is also resizeable and it is causing me problems since it...
7
by: Robert Bull | last post by:
I have created an asp.net app on my machine where the resolution is set to 1280 x 1024. When my users view the form on their screen, some of the controls display differently than on my screen. One...
2
by: SL33PY | last post by:
Hi and thank you for taking the time to read about my problem. I have a simple MDI parent form frmMain with a menu (file, edit, window, help). Under file you can create new childforms called...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
24
by: dE|_ | last post by:
I have started looking into scripts for screen size detect with the intention of using them to pick from a number of CSS style sheets tailored to the size. Is there a good reason why this is not...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.