'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Set this property to False to properly use this event.
GdViewer1.PdfShowOpenFileDialogForDecryption = False
'Add the event.
AddHandler GdViewer1.PdfCertificateRequest, AddressOf GdViewer1_PdfCertificateRequest
'Define the event.
Sub GdViewer1_PdfCertificateRequest(ByRef CertPath As String, ByRef Password As String) Handles GdViewer1.PdfCertificateRequest
'Display your own dialog box to allow users to insert the correct digital ID file and the corresponded password.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Set this property to false to properly use this event.
GdViewer1.PdfShowOpenFileDialogForDecryption = false
//Add the event.
GdViewer1.PdfCertificateRequest += GdViewer1_PdfCertificateRequest;
//Define the event.
void GdViewer1_PdfCertificateRequest(ref string CertPath, ref string Password)
{
//Display your own dialog box to allow users to insert the correct digital ID file and the corresponded password.
}