In This Topic
Returns the handle to the device context associated with this GdViewer control.
Syntax
'Declaration
Public Function GetHdc() As IntPtr
public function GetHdc(): IntPtr;
public function GetHdc() : IntPtr;
Return Value
The handle to the device context.
Example
How to properly manipulate with the handle.
'We assume that the GdViewer1 control has been properly integrated.
Dim myHdc As IntPtr = GdViewer1.GetHdc()
'Do your stuff here.
GdViewer1.ReleaseHdc(myHdc)
//We assume that the GdViewer1 control has been properly integrated.
IntPtr myHdc = GdViewer1.GetHdc();
//Do your stuff here.
GdViewer1.ReleaseHdc(myHdc);
Example
How to properly manipulate with the handle.
'We assume that the GdViewer1 control has been properly integrated.
Dim myHdc As IntPtr = GdViewer1.GetHdc()
'Do your stuff here.
GdViewer1.ReleaseHdc(myHdc)
//We assume that the GdViewer1 control has been properly integrated.
IntPtr myHdc = GdViewer1.GetHdc();
//Do your stuff here.
GdViewer1.ReleaseHdc(myHdc);
See Also