NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Control.FromHandle

Returns the control that is currently associated with handle.

[Visual Basic]
Public Shared Function FromHandle( _
   ByVal handle As Integer _
) As Control
[C#]
public static Control FromHandle(
   int handle
);
[C++]
public: static Control* FromHandle(
   int handle
);
[JScript]
public static function FromHandle(
   handle : int
) : Control;

Parameters

handle
HWND to search for.

Return Value

Control associated with handle, or null if no control was found.

See Also

Control Class | Control Members | System.WinForms Namespace