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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.