Question

I'm writing an application and have been trying to find a way to have multiple screens for different users.

One user would see and operate the control screen and the other would see the output. Up until now I've been using cloned screens so both users can see the control screen.

The output would basically be hooked up to a projector.

Any ideas?

Was it helpful?

Solution

Intead of cloning the screen, extend the desktop so that you can drag windows from your laptop screen over to the projector.

You then create two windows - the controller on the laptop and the display on the projector.

When you want to show the display window, you can do the following:

private void showDisplay()
{
    DisplayWindow dw = new DisplayWindow();
    // set dw properties if needed and make window visible

    // This is the part you are interested in
    int x = Screen.Bounds.X; // x-resolution (width) of the controller screen
    int y = 0; // top of the screen
    dw.Location = new Point(x, y); // Reposition the display window on the projector
}

This code will make the display window which you want to see in the projector visible only in the projector, while the controller will be on the laptop.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top