在所有屏幕中复制一个窗口

在所有屏幕中复制一个窗口

本文介绍了在所有屏幕中复制一个窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在多监视器环境中,如何在所有屏幕上显示表单?是否可以处理不同的可用屏幕,并在与主窗口不同的屏幕上显示表单?

In a multi-monitor environment, how can I display a form on all the screens? Is it possible to get handles to the different screens available, and display a form in a different screen than where the main window lives?

我真正需要做的是在所有显示器上克隆一个窗口.

What I really need to do is to clone a window on all displays.

推荐答案

一个多显示器系统实际上具有单个非常大的显示区域.
在不同的监视器中,一点没有什么不同.就在前一台显示器的右侧.

A multi-monitor system effectively has a single, very large display area.
There is nothing different about a point in a different monitor; it will just be far to the right of the previous monitor.

您可以使用 Screen 查找用户的所有屏幕.

You can use the Screen class to find all of the user's screens.

您可以遍历 Screen.AllScreens 并为每个屏幕创建表单的新实例,将其位置设置为该屏幕的 WorkingArea 中的一个点.

You can loop through Screen.AllScreens and create a new instance of the form for each screen, setting it's location to a point within that screen's WorkingArea.

这篇关于在所有屏幕中复制一个窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 03:22