Screen.FromHandle(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a Screen for the display that contains the largest portion of the object referred to by the specified handle.
public:
static System::Windows::Forms::Screen ^ FromHandle(IntPtr hwnd);
public static System.Windows.Forms.Screen FromHandle (IntPtr hwnd);
static member FromHandle : nativeint -> System.Windows.Forms.Screen
Public Shared Function FromHandle (hwnd As IntPtr) As Screen
Parameters
Returns
A Screen for the display that contains the largest region of the object. In multiple display environments where no display contains any portion of the specified window, the display closest to the object is returned.
Applies to
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.