GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / ReleaseHdc Method
The handle to the device context associated with the control.
Example





In This Topic
ReleaseHdc Method
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 GetHdc method.
Syntax
'Declaration
 
Public Sub ReleaseHdc( _
   ByVal Hdc As IntPtr _
) 
public void ReleaseHdc( 
   IntPtr Hdc
)
public procedure ReleaseHdc( 
    Hdc: IntPtr
); 
public function ReleaseHdc( 
   Hdc : IntPtr
);
public: void ReleaseHdc( 
   IntPtr Hdc
) 
public:
void ReleaseHdc( 
   IntPtr Hdc
) 

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);
See Also