hWnd Property  
 

Returns a handle to the control window.

Syntax

object.hWnd

Remarks

The hWnd property returns the handle to the control window. The Windows operating system identifies each form or control in an application by assigning it a numeric value called a handle, or hWnd. This handle is required by many Windows API functions which can be used to control the behavior and appearance of a window. For more information, refer to the Windows User Interface documentation or the Windows API technical reference which is part of the Microsoft Windows SDK.

Note that because the hWnd property value can change while the program is running, you should never store the value in a variable.

Data Type

Integer (Int32)