1

我正在编写一个应用程序,并且一直在尝试找到一种为不同用户提供多个屏幕的方法。

一位用户将看到并操作控制屏幕,而另一位用户将看到输出。到目前为止,我一直在使用克隆屏幕,因此两个用户都可以看到控制屏幕。

输出基本上会连接到投影仪。

有任何想法吗?

4

1 回答 1

1

无需克隆屏幕,而是扩展桌面,以便您可以将笔记本电脑屏幕上的窗口拖到投影仪上。

然后创建两个窗口 - 笔记本电脑上的控制器和投影仪上的显示器。

当您想要显示显示窗口时,您可以执行以下操作:

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
}

此代码将使您想在投影仪中看到的显示窗口仅在投影仪中可见,而控制器将在笔记本电脑上。

于 2012-02-19T03:45:06.443 回答