Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Screen.FromHandle(IntPtr) Method
Definition
- Namespace:
- System.Windows.Forms
- Assembly:
- System.Windows.Forms.dll
- Source:
- Screen.cs
- Source:
- Screen.cs
- Source:
- Screen.cs
- Source:
- Screen.cs
- Source:
- Screen.cs
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
Feedback
Was this page helpful?
