문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top