不同用户的不同屏幕

发布于 2025-01-06 13:15:05 字数 149 浏览 5 评论 0原文

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

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

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

有什么想法吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轻拂→两袖风尘 2025-01-13 13:15:05

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

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

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

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
}

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文