The Windows object handle for the form object.

Property of

Most form objects

Description

Use the hWnd property when you need to pass the handle of a form object to a Windows API function or other external DLL.

hWnd vs hWndClient

hWndClient is the handle for the parent window that contains a form’s controls. In contrast, hWnd is the handle for the form itself; the parent of the hWndClient window, and the grandparent of the controls.

The hWnd property is read-only.