This property returns a handle provided by Windows CE to the device context of an object.
object.HDC
The HDC property is a Windows CE device context handle. Windows CE 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.
The value of the HDC property can change while an application runs, so do not store the value in a variable; instead, use the HDC property each time you need it.