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.FromChildHandle

Returns the control that is currently associated with handle. This method will search up the HWND parent chain until it finds some handle that is associated with with a control. This method is more robust that fromHandle because it will correctly return controls that own more than one handle.

[Visual Basic]
Public Shared Function FromChildHandle( _
   ByVal handle As Integer _
) As Control
[C#]
public static Control FromChildHandle(
   int handle
);
[C++]
public: static Control* FromChildHandle(
   int handle
);
[JScript]
public static function FromChildHandle(
   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