NativeWindow.FromHandle(IntPtr) Método

Definición

Recupera la ventana asociada al identificador especificado.

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

Parámetros

handle
IntPtr

nativeint

Identificador de una ventana.

Devoluciones

NativeWindow Asociado al identificador especificado. Este método devuelve null cuando el identificador no tiene una ventana asociada.

Comentarios

Si recibe un identificador de otro método, use este método para recuperar la ventana asociada al identificador. El identificador ya debe ser propiedad de otro NativeWindow en el proceso actual; de lo contrario, null se devuelve.

Se aplica a

Consulte también