Control.FromHandle(IntPtr) Methode

Definition

Gibt das Steuerelement zurück, das derzeit dem angegebenen Handle zugeordnet ist.

public:
 static System::Windows::Forms::Control ^ FromHandle(IntPtr handle);
public static System.Windows.Forms.Control FromHandle(IntPtr handle);
public static System.Windows.Forms.Control? FromHandle(IntPtr handle);
static member FromHandle : nativeint -> System.Windows.Forms.Control
Public Shared Function FromHandle (handle As IntPtr) As Control

Parameter

handle
IntPtr

nativeint

Das Fensterhandle (HWND), nach dem gesucht werden soll.

Gibt zurück

A Control that represents the control associated with the specified handle; returns null if no control with the specified handle is found.

Hinweise

Verwenden Sie die FromChildHandle Methode, wenn Sie Steuerelemente zurückgeben müssen, die mehrere Handle besitzen.

Gilt für:

Weitere Informationen