不同用户的不同屏幕

时间:2012-02-18 22:50:28

标签: c# screen projector

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

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

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

有什么想法吗?

1 个答案:

答案 0 :(得分: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
}

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

相关问题