multiple-monitors

Event for when the number of displays changes in .NET?

I have a program that needs to update some internal data structures when the number of attached displays changes, like when you put your laptop into the docking station and your dual monitors comes to life. Couple of questions in this regard: Is there such an event in .NET? If not, is there a windows message I can listen for? Will Scr...

How can I listen for monitors being added or removed?

On Windows, how can I find out when monitors (physical display devices) are added/removed/detached/resolution changed/etc.? I'd prefer not to poll EnumDisplayDevices(). ...

How do I prevent Window resizing when the Workstation is Locked then Unlocked?

We have an application that is run in multi-monitor environments. Users normally have the application dialog spread out to span multiple mointors. If the user locks the workstation, and then unlocks it, our application is told to resize. Our users find this behavior frustrating, as they then spend some time restoring the previous layo...

Bad behavior with Aero off in Vista

I have a directx9 application, which needs to run on a machine with Aero disabled. The app runs in windowed mode. When the window is first created, it looks just fine within a single screen. When I move the window in such a way that it spans two screens attached to the same graphics adapter (and GPU) the region on one screen seems to mir...

How to force a MPI application to open on second monitor (Windows)

I use a visualization software as a parallel MPI (MPICH2) program running on a cluster to drive a tiled display (ParaView). The OS is Windows XP. Each node in that cluster has two graphic cards. To each graphic card one monitor is connected. The first monitor is for administrative usage. The second monitor (output) is connected to a beam...

WPF Mutli-Monitor Problem - WindowState

Hi, I've been trying to get my WPF application to span multiple monitors for some time now, and nearly have it working. The problem seems to arise when I set the following line: win1.WindowState = WindowState.Maximized This causes the application to span only the primary screen. My code is as follows: public partial class App : Ap...

How do you create a second taskbar to use on multiple monitors?

I recently got myself a second monitor and I have been looking at software which offers the possibility to extend the taskbar to the second monitor. Softwares such as UltraMon and MultiMon offer such possibility. I'd be interested to know what is the method they are using to replicate the tasbar? More precisely: Is the second taskbar ...

Number of physical monitors attached to a Windows machine?

I am trying to count the number of monitors attached to a machine ( not virtual displays, so two monitors running with clone would have one virtual display but two physical monitors ). I am currently counting the active monitors listed under the device manager. This works fine in Windows Vista and 7, but it seems that in Windows XP, th...

javascript:find screen resolution when having multiple monitors

I am using this piece of code to determine the client screen resolution, and then logging it <input type="hidden" id="DFF63C7E-FB32-49AE-8ADA-3AB5C4834FB0" name="DFF63C7E-FB32-49AE-8ADA-3AB5C4834FB0"/> <input type="hidden" id="565C07CF-0D37-41DE-B47D-A247E9BD231B" name="565C07CF-0D37-41DE-B47D-A247E9BD231B" /> <script type="text/javasc...

Wpf Window resizes when computer is locked.

I have a Window set to the height and width of my monitors: var r = System.Drawing.Rectangle.Union( System.Windows.Forms.Screen.AllScreens[0].Bounds, System.Windows.Forms.Screen.AllScreens[1].Bounds ); Height = r.Height; Width = r.Width; This is all fine until I Lock my computer (WIN+L), when I come back the window has resized itself ...

Pair programming tools that are not remote

I am currently in a job where we practice serious pair programming on windows machines. We both have a set of keyboards, mice, and we have two monitors, which works well for switching who's the driver really easy, but there are some points in the session that I would like to start writing tests at the same time that my pair is writing im...

Google analytics with several subdomains and several tracking codes

On my site I have complicated situation and want ask for advice how to do tracking best of all. On my site I have 2 main high level domains, for example www.domain1.com and www.domain2.com. They are working with the same app code, just domain names are different. www.domain1.com is available for public as well as integrated client site...

Toggle between "Extend these displays" and "Show desktop only on 1"

I'm looking for a way to programmatically alter the video properties in Windows 7. I'd like to toggle the Multiple display state (as seen in Control Panel > Appearances and Personalization > Display > Screen Resolution) between "Extend these displays" and "Show desktop only on 1". This is the sort of thing that I think is probably doab...

How much more productive are three monitors than two?

I am mulling over whether to buy a new monitor, to go along side my current setup of two 24 (ish) inch monitors. What I want to know is whether this is worth the money (probably around £200)? I think most of us will agree that two monitors is much more productive than one when programming and developing (Jeff Atwood has said this many t...

Is there a Visual Studio 2010 Add On for Tabbed Multi-Monitor support

In Visual Studio 2010 you can drag tabs out to separate windows but you can not collect them together as additional tabbed elements. Is there a VS 2010 add-on to allow you to group your extra windows into tabs? It would be really nice to have a set of tabs on each of my monitors. ...

Maximizing Adobe Air windows on multiple monitors

In an Adobe Air AJAX application with multiple windows running on a system with multiple (three or more) monitors, can you maximize the windows in each monitor? I've seen posts by others trying to do this, but I've not seen anyone saying how it worked out. I basically need to build a 'status monitor' system (similar to, say, an airport...

Programming a virtual second monitor driver: where to begin?

There is an iPad app called Air Display which turns your iPad into a wireless second monitor for your computer. I haven't personally tried it so I can't vouch for its effectiveness, and I assume it has a significant amount of lag, but I think it would be very useful to toss something for reference onto the iPad screen and then work on yo...

What's the best way to deal with multiple monitors?

I want to create a game that will take advantage of multiple monitors. For example, if the user has 3 monitors side by side I want the program to spread the image across all 3 monitors. How am I supposed to do this? Can I just make one really big window, or do I have to do 3 separate windows? And if I have to do separate windows, how do...

How does UltraVNC achive "Server Monitor Blanking"

UltraVNC is able to blank the monitor of the computer being remotely accessed. My question is, how is this possible? In my understanding, due to the nature of the Windows OS, remote desktop applications are limited to remotely displaying only snapshots of the current physical screen. I believe UltraVNC is also subject to this limitatio...

Determining which monitors/displays/screens are attached

In the windows desktop properties all the displays are shown and are indicated to be active or inactive. My graphics card has a monitor connected to the dvi port but not the vga and this is correctly determined (i.e. one of the displays is labelled inactive). I also have a usb displaylink lcd which is also detected. Using system.windows...