WindowFromHandle Method

Applies to TestComplete 15.64, last modified on May 16, 2024


The WindowFromHandle method lets you get the sTestComplete Window object for a window specified by its handle.



TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Handle [in]    Required    Integer    
Result The Window object

Applies To

The method is applied to the following objects:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.


The method has the following parameter:


The handle of the desired window.

Result Value

The Window object whose handle is specified. If no window is found for the specified handle, the WindowFrom Handle method returns an empty stub object.


To view an example that demonstrates how to use the WindowFromHandle method, see Clicking In-place Editors' Buttons in Syncfusion GridGroupingControl.

See Also

Window Object

Highlight search results