Control.fromHandle

Overview | Methods | Fields | This Package | All Packages

Control.fromHandle

Returns the control that is currently associated with the specified handle.

Syntax

public static final Control fromHandle( int handle )

Parameters

handle

The window handle (HWND) to search for.

Return Value

Returns a Control object that represents the control associated with the specified handle; returns null if no control with the specified handle is found.

Remarks

Use the fromChildHandle method if you need to correctly return controls that own more than one handle.

See Also   fromChildHandle