Partilhar via


hWnd Property

Returns a handle to Forms and user-defined Toolbar objects.

Object.hWnd

Remarks

The Microsoft Windows operating environment identifies each form in an application by assigning it a handle, or hWnd. The hWnd property is used with Windows API calls. Many Windows operating environment functions require the hWnd of the active window as an argument.

Because the value of this property can change while a program is running, you cannot rely on its value (e.g., when stored in a variable).

hWnd is available in user-defined Forms and Toolbar objects and is read-only at both run and design-time.

See Also

Form Object | Toolbar Object | _WhToHwnd( ) API Library Routine