In This Topic
Releases the handle to the device context associated with this GdViewer control, which has been obtained by a previous call of the GdViewer.GetHdc method.
Syntax
'Declaration
Public Sub ReleaseHdc( _
ByVal As IntPtr _
)
public void ReleaseHdc(
IntPtr
)
public procedure ReleaseHdc(
: IntPtr
);
public function ReleaseHdc(
: IntPtr
);
public: void ReleaseHdc(
IntPtr
)
public:
void ReleaseHdc(
IntPtr
)
Parameters
- Hdc
- The handle to the device context associated with the control.
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