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

Display Settings - Dual Monitor API

Experts -

I have a laptop running XP docked to a dual monitor
setup. I find it quite annoying that even when I undock,
I am still on dual monitor setting, which means some of
my apps are on the hidden screen and thus unusable.

I have to mannually go to the 'display settings' and
change it to single monitor mode by not 'extending the
desktop' to my 2nd monitor.

I am figuring that there has to be an easy way to make
the configuration occure automitically, OR that there is
a Windows API that I can use to change the settings
programatically by embedding it in some script that I run
off a button or something.....

Can anyone help me? I've tried finding resources on this
and have come up with absolutley nothing.

thanks,
Mark

Nov 20 '05 #1
2 3499
Well, you "could" write something like this, I don't know what exists for it
already. But watch the message loop (I don't know what message to watch
for) for an undocked message. I think you can play with your display
settings from some namespaces in .NET, I dunno.

but even if you can't, upon parsing that message, just get a list of all
your open windowd applications, grab the handles and set all there Top and
Left properties to 0,0

Kinda ghetto, but it would work...

You could even persist the viewstate of those windows from docking to
undocking in a simple property bag. That way, when docked again, you could
move them all back to there original position.

I may get bored and try this later...
"Mark" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Experts -

I have a laptop running XP docked to a dual monitor
setup. I find it quite annoying that even when I undock,
I am still on dual monitor setting, which means some of
my apps are on the hidden screen and thus unusable.

I have to mannually go to the 'display settings' and
change it to single monitor mode by not 'extending the
desktop' to my 2nd monitor.

I am figuring that there has to be an easy way to make
the configuration occure automitically, OR that there is
a Windows API that I can use to change the settings
programatically by embedding it in some script that I run
off a button or something.....

Can anyone help me? I've tried finding resources on this
and have come up with absolutley nothing.

thanks,
Mark

Nov 20 '05 #2
Mark,

My experience with this issue is that it is driver dependant. Some
drivers detect the change and handle it gracefully, and some don't. I
wish I had an answer for this but I have found it to be directly
related to your video card and driver. Hopefully CJ's suggestion is
helpful.

"Mark" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Experts -

I have a laptop running XP docked to a dual monitor
setup. I find it quite annoying that even when I undock,
I am still on dual monitor setting, which means some of
my apps are on the hidden screen and thus unusable.

I have to mannually go to the 'display settings' and
change it to single monitor mode by not 'extending the
desktop' to my 2nd monitor.

Nov 20 '05 #3

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

Similar topics

10
by: KJM | last post by:
How can I detect if the user has dual monitors and then how do I control which monitor a form is displayed on. Currently my forms always come up on my right monitor. What if I want to have it...
2
by: Renganathan | last post by:
I have an appliction which has two form winodow in C#. i want to see these window in Simultaneously.This application should supports dual monitor. one window is one monitor and another window is in...
4
by: simchajoy2000 | last post by:
Hi, Is it possible to programmatically detect what display settings the user has on their monitor with ASP.NET? I need to be able to resize some of the things on my webpage if the user has...
5
by: Joe-Paul | last post by:
Is there a way to get the desktop (computer's) display settings (the size of the window; i.e. 1024 X 768, etc.) when starting a program...changing it to what it needs to be for the length of the...
9
by: mukeshhtrivedi | last post by:
We have MS Access 2000 Application (on Network- file server) and it workd fine as intended. However in one of our Windows XP computer (workstation) in bookd jobs module 10 digit field shows 8...
3
by: rsr | last post by:
hi friends, When I connect an external monitor to my laptop, its working fine. But its unable to display motion picures..(like .avi) I mean that I am able to get the same screen as my laptop...
8
by: Sheldon | last post by:
I just received a 2nd (configured as a dual) monitor but, for Access only, I can't seem to figure out, if it's possible, to view, say, Table1 on one monitor and Table2 on the other monitor. If I...
0
by: praveenhathwar | last post by:
I ve developed an application. My client has two monitors for a single PC. He wants to display a video clip in the second monitor continuosly (Repeatedly) and when the application in runs in Primay...
1
by: nanban4u | last post by:
Hi, Programming Language - HTML, JavaScript Web server : IIS 6 Browser : IE 6 + I am working in a Dual Monitor screen setup. I have a scenario some times the user move the IE screen from...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.