Retrieves the window associated with the specified handle.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
'Declaration Public Shared Function FromHandle ( _ handle As IntPtr _ ) As NativeWindow
- Type: System.IntPtr
A handle to a window.
If you receive a handle from another method, use this method to retrieve the window associated with the handle. The handle must already be owned by another NativeWindow in the current process; otherwise, Nothing is returned.