Returns the control that is currently associated with the specified handle.
Syntax
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public static
Control FromHandle (
IntPtr handle)
Parameters
- handle
-
The window handle (HWND) to search for.
Returns
A System.Windows.Forms.Control that represents the control associated with the specified handle; returns null if no control with the specified handle is found.
Remarks
Requirements
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0