HDC

Returns a handle provided by the Microsoft Windows CE operating environment to the device context of an object.

Syntax

object.hDC

The object placeholder represents an object expression that evaluates to an object.

Remarks

This property is a Windows operating environment device context handle. The Windows operating environment manages the system display by assigning a device context for an object and for each form in your application. You can use the hDC property to refer to the handle for an object's device context.

Note The value of the hDC property can change while a program is running, so do not store the value in a variable; instead, use the hDC property each time you need it.