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!

NativeWindow.FromHandle

Retrieves the window associated with the specified handle.

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

Parameters

handle
A handle to a window.

Return Value

The NativeWindow associated with the specified handle. This method returns a null reference (in Visual Basic Nothing) when the handle does not have an associated window.

Remarks

If you received a handle from another method, use this method to retrieve the window associated with the handle.

See Also

NativeWindow Class | NativeWindow Members | System.WinForms Namespace | NativeWindow | Handle | AssignHandle | CreateHandle | DestroyHandle | ReleaseHandle | WndProc