HWnd

This property returns a handle to a form or control.

Syntax

object.HWnd

Parameters

object
Object expression that evaluates to a control or Form object.

Remarks

Windows CE identifies each form and control in an application by assigning it a handle, or HWnd. Many Windows CE functions require the HWnd of the active window as a parameter.

Because the value of this property can change while an application runs, never store the HWnd value in a variable.