'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.AfterDocumentChange, AddressOf GdViewer1_AfterDocumentChange
'Define the event.
Sub GdViewer1_AfterDocumentChange() Handles GdViewer1.AfterDocumentChange
'The document has been successfully loaded and displayed.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.AfterDocumentChange += GdViewer1_AfterDocumentChange;
//Define the event.
void GdViewer1_AfterDocumentChange()
{
//The document has been successfully loaded and displayed.
}