'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.PdfUriNavigation, AddressOf GdViewer1_PdfUriNavigation
'Enabling URI navigation handling.
PdfEnableLinks = True
'Define the event.
Sub GdViewer1_PdfUriNavigation(ByRef URI As String, ByRef Cancel As Boolean) Handles GdViewer1.PdfUriNavigation
MessageBox.Show("The URI is: " + URI, "GdViewer.PdfUriNavigation")
'Turning this parameter to True disables automatic handling of the specified URI by the toolkit.
Cancel = True
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.PdfUriNavigation += GdViewer1_PdfUriNavigation;
//Enabling URI navigation handling.
PdfEnableLinks = true;
//Define the event.
void GdViewer1_PdfUriNavigation(ref string URI, ref bool Cancel)
{
MessageBox.Show("The URI is: " + URI, "GdViewer.PdfUriNavigation");
//Turning this parameter to true disables automatic handling of the specified URI by the toolkit.
Cancel = true;
}