Keysight Pathwave 89600 VSA .NET API
WindowHandle Property
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > Application Class : WindowHandle Property


Glossary Item Box

Gets the Microsoft Windows handle of the main application window.

Syntax

Visual Basic (Declaration) 
Public MustOverride ReadOnly Property WindowHandle As Integer
C# 
public abstract int WindowHandle {get;}
C++/CLI 
public:
abstract property int WindowHandle {
   int get();
}

Remarks

This property returns the Microsoft Windows handle (the hWnd) of the main application window. You can use this value in any Win32 API call to manipulate the window. For example, you may want to call a Win32 function to raise, lower, resize, or minimize the application window.

Note that until the application has been made visible, there is no window and hence no window handle. This property will return 0 until such time that the application has been made visible.

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also