GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / Dispose() Method
Example





Dispose() Method
Disposes already used GdViewer object completely. All related resources used by this object are released.

This method implicitly calls the GdViewer.CloseDocument method.

Syntax
'Declaration
 
Public Shadows Sub Dispose() 
 
Remarks
Please find our Document Viewer Sample here to fully see, how to create, integrate and use the GdViewer control in your application.
Example
How to simply dispose of the GdViewer instance.
Dim GdViewer1 As GdViewer = New GdViewer()
            
'Use the GdViewer1 here.
GdViewer1.DisplayFromFile("")
'Do your stuff here.
            
GdViewer1.Dispose()
See Also