csUnit Class Library

Control.FromHandle Method (IntPtr)

Creates a new control object and attaches a window handle to it.

public static Control FromHandle(
   IntPtr windowHandle
);

Parameters

windowHandle
The window handle of the window to attach to the control object.

Return Value

A Control object, if successful. 'null' otherwise.

See Also

Control Class | csUnit.Windows Namespace | Control.FromHandle Overload List