473,386 Members | 1,752 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,386 software developers and data experts.

Changing Screen Resolution

I've read previous posts and know it is "bad form" to change a user's
screen resolution to fit your program's needs. My situation is very
different.

I have a user with a laptop resolution of 1680x1050. When they dock
the laptop, the external monitor connects and uses 1900x1200
resolution.

They need a program to do the following:
1 - Detect the current screen resolution.
2 - If it is 1680x1050 then change it to 1900x1200.
3 - If it is 1900x1200 then change it to 1680x1050.

What is the best way to do this?

Thank you,
Joe

Nov 13 '05 #1
5 3764
jl*******@dlbassociates.com wrote:
I've read previous posts and know it is "bad form" to change a user's
screen resolution to fit your program's needs. My situation is very
different.

I have a user with a laptop resolution of 1680x1050. When they dock
the laptop, the external monitor connects and uses 1900x1200
resolution.

They need a program to do the following:
1 - Detect the current screen resolution.
2 - If it is 1680x1050 then change it to 1900x1200.
3 - If it is 1900x1200 then change it to 1680x1050.

What is the best way to do this?

Thank you,
Joe


Why? You do realize that LCD monitors don't support just any resolution
setting right? Are you sure that you won't just kill the display
altogether?

Do they have problems with any other software when they put the laptop into
the docking station? I assume that Word, Excel etc., have no issues so why
does your application have problems?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
Rick Brandt wrote:
jl*******@dlbassociates.com wrote:
I've read previous posts and know it is "bad form" to change a user's
screen resolution to fit your program's needs. My situation is very
different.

I have a user with a laptop resolution of 1680x1050. When they dock
the laptop, the external monitor connects and uses 1900x1200
resolution.

They need a program to do the following:
1 - Detect the current screen resolution.
2 - If it is 1680x1050 then change it to 1900x1200.
3 - If it is 1900x1200 then change it to 1680x1050.

What is the best way to do this?

Thank you,
Joe

Why? You do realize that LCD monitors don't support just any resolution
setting right? Are you sure that you won't just kill the display
altogether?

Do they have problems with any other software when they put the laptop into
the docking station? I assume that Word, Excel etc., have no issues so why
does your application have problems?

I agree. I had a situation once where I developed the form on 800x600.
The client said everyone used 1024x768 so I didn't care so much about
real estate space after that. Then the client said there were a couple
still using 800x600. So I used the code found at
http://www.mvps.org/access/api/api0012.htm to detect the size. If
800x600 I maximized the form otherwise I restored it when the form was
activated.
Nov 13 '05 #3
Perhaps I didn't explain myself well enough. The screen resolution is
not causing a problem with any specific software or form. I'm trying
to resolve a display issue by running through a short program.

I'm looking for assistance writing the program, using Access, that will
check the screen resolution and change it to another resolution based
on it's current setting.

This will save the user the hassle of opening the Display Properties,
choosing the Settings tab and manually changing the resolution himself
every time he docks and undocks the laptop.

Thanks,
Joe

Nov 13 '05 #4
jl*******@dlbassociates.com wrote:
Perhaps I didn't explain myself well enough. The screen resolution is
not causing a problem with any specific software or form. I'm trying
to resolve a display issue by running through a short program.

I'm looking for assistance writing the program, using Access, that will
check the screen resolution and change it to another resolution based
on it's current setting.

This will save the user the hassle of opening the Display Properties,
choosing the Settings tab and manually changing the resolution himself
every time he docks and undocks the laptop.


The thing is, when they dock, the reported resolution is what they had
on the laptop screen until they change it manually. There are some
utilities that come with video drivers that usually sit in the system
tray and allow a change of resolution quickly. I know laptop drivers
usually lack these but you may find one on http://www.omegadrivers.net/
that will work.

--
[OO=00=OO]
Nov 13 '05 #5
A quick google.groups search would have found this:

http://groups-beta.google.com/group/...ab94340d427fd3

Nov 13 '05 #6

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

Similar topics

1
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?
1
by: Julius Mong | last post by:
Dear all, I have the following: <html> <head> .... </head> <frameset ...> <frame .../> <frameset name="page" rows="60,*" ...> <frame src='top.html' .../>
2
by: VMI | last post by:
How can I change the size of the forms in my Windows application when the screen resolution the user has is higher than the one I developed the application in? I have a customer that has a screen...
6
by: Darian | last post by:
I am wondering how (if it is possible of course) I can change a users screen resolution to a certain size when running my application and then change it back when they exit my application. For...
5
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...
9
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...
0
by: A. User | last post by:
All, I created an Access 2000 MDE application in 1024x768. A user of mine, who is running Vista with Office 2007, can not see the entire application- the right most side is off the screen. No...
4
by: PrakashN | last post by:
I have one project it was developed in 800 X 600 pixel screen resolution. Now I changed screen resolution to 1024 X 768. Forms size is reduced. How can I get full screen? Please help me.
1
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...
10
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.