'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.BeforeDocumentChange, AddressOf GdViewer1_BeforeDocumentChange
'Define the event.
Sub GdViewer1_BeforeDocumentChange() Handles GdViewer1.BeforeDocumentChange
'The document is going to be displayed after the successful loading.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.BeforeDocumentChange += GdViewer1_BeforeDocumentChange;
//Define the event.
void GdViewer1_BeforeDocumentChange()
{
//The document is going to be displayed after the successful loading.
}