473,569 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Screen resolution on deployment

Could someone please advise how to cope with various screen resolutions
that are used when an application is deployed to other machines that
have different screen resolutions than the development machine.

Should the application be developed in a moderate resolution screen
(say 800 x 600) and then have the application switch the target machine
to this mode when running ? If so, how would I do this.

Or is there a way that the application scales itself to fit the mode of
the target machine ?

Thanks in advance

Regards

David
Nov 21 '05 #1
4 1555
Hi,

Controls have a dock and anchor properties to help with form
resizing.

http://msdn.microsoft.com/library/de...ingControl.asp

http://msdn.microsoft.com/library/de...nchortopic.asp

Ken
----------------------
"David" <gr****@orbitco ms.com> wrote in message
news:O8******** **********@news-server.bigpond. net.au...
Could someone please advise how to cope with various screen resolutions
that are used when an application is deployed to other machines that have
different screen resolutions than the development machine.

Should the application be developed in a moderate resolution screen
(say 800 x 600) and then have the application switch the target machine to
this mode when running ? If so, how would I do this.

Or is there a way that the application scales itself to fit the mode of
the target machine ?

Thanks in advance

Regards

David

Nov 21 '05 #2
"David" <gr****@orbitco ms.com> schrieb:
Could someone please advise how to cope with various screen resolutions
that are used when an application is deployed to other machines that have
different screen resolutions than the development machine.

Should the application be developed in a moderate resolution screen
(say 800 x 600) and then have the application switch the target machine to
this mode when running ? If so, how would I do this.
It's often a bad idea to change the users's screen resolution
programmaticall y.
Or is there a way that the application scales itself to fit the mode of
the target machine ?


I suggest to use resizable forms. You can use the controls' 'Anchor' and
'Dock' properties to enable automatic positioning if the form is resized.
When setting the form's 'WindowState' property to 'Maximized' the form will
fill the whole desktop/screen. In addition, the form's 'MinimumSize' and
'MaximumSize' properties can be used to set minimal and maximal bounds of
the form.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
"David" <gr****@orbitco ms.com> wrote in message
news:O8******** **********@news-server.bigpond. net.au...
Should the application be developed in a moderate resolution screen
(say 800 x 600) ...
Yes.
... and then have the application switch the target machine to this
mode when running ?
Absolutely not!
(unless you're writing an arcade game!).

You'll annoy your users, who already have /their/ monitors set up
the way /they/ want them and you can't even guarantee that the
monitor (or whatever) that they're actually using supports /any/
given resolution especially with the increase in LCD monitors,
these days.
Or is there a way that the application scales itself to fit the mode
of the target machine ?


Use the Anchor and Dock properties on each Control to take
advantage of higher resolutions or, if you're developing forms that
other Developers inherit from, be prepared to cut your own Layout
code to position things (not entirely sure why, but using Anchoring in
the base form gave me a /lot/ of grief).

HTH,
Phill W.
Nov 21 '05 #4
In addition to the valuable comments made by others on this thread you may
wish to look into custom layout schemes. The GotDotNet site has quite a bit
of information on this subject.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"David" <gr****@orbitco ms.com> wrote in message
news:O8******** **********@news-server.bigpond. net.au...
Could someone please advise how to cope with various screen resolutions
that are used when an application is deployed to other machines that have
different screen resolutions than the development machine.

Should the application be developed in a moderate resolution screen
(say 800 x 600) and then have the application switch the target machine to
this mode when running ? If so, how would I do this.

Or is there a way that the application scales itself to fit the mode of
the target machine ?

Thanks in advance

Regards

David

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
11050
by: ZaGras | last post by:
when my vb program run on another computer instead of my computer, the user interface is biggger..this is because of the screen resolution... anyone know how to solve pls?
23
4861
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via JavaScript, and 3) using fancy redirects and forced "back skip" redirects with cookies. Every approach has some fatal flaw as far as I have been...
5
4398
by: Chris | last post by:
After exhausting my search on the MS website, I can't find a straight answer. I fin dit hard to believe that MS left our something so useful in ASP.NET as screen resolution detection. Problem: I would like to detect, get values for, the screen resolution in px but in a code behind. Is this possible? There is a System.Windows.Forms.Screen...
4
15496
by: pjac | last post by:
I need some help with some VB language that will change the screen resolution on a monitor when a MS-Access 2000 database is opened from 1024 x 768 to 800 x 600. Any help with this effort would be deeply appreciated. Thanks in advance....
3
5641
by: Chris | last post by:
I think I placed this in the wrong news group so I'm moving it here. Suggestion to Microsoft make the categories more clear and make better sense. ASP.NET should be its own group, why bury under Framework. And I see others doing the same mis-posting to dotnet.general which appears to be gearded more towards windows applications. What are...
5
6190
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in either resolution 800 X 600 or 1152 X 864 it takes up the entire explorer size. In screen resolution 800 X 600, if I insert a pictures of 24 X 24...
9
3892
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of stylesheet switcher as part of the onload event but I would rather link in the correct stylesheet for the resolution in the first place.
1
2494
by: nasima khan | last post by:
Hi, i am nasima. I have got a code for setting the screen resolution of my page, but i am unable to understand. Can any one give a complete data explanation of the below code. Sub ChangeRes(X As Long, Y As Long, Bits As Long) Dim DevM As DEVMODE, ScInfo As Long, erg As Long, an As VbMsgBoxResult 'Get the info into DevM erg =...
10
44068
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their screen. I used to write code in Java a few years ago (2005), and you could stretch a form with the mouse and all the controls and fonts would...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.