Retrieves the window associated with the specified handle.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
- 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, a null reference (Nothing in Visual Basic) is returned.