'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.PdfShowDialogForPassword = False
'Add the event.
AddHandler GdViewer1.PdfPasswordRequest, AddressOf GdViewer1_PdfPasswordRequest
'Define the event.
Sub GdViewer1_PdfPasswordRequest(ByRef Password As String) Handles GdViewer1.PdfPasswordRequest
'Display your own dialog box to allow users to insert the correct password.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Set this property to false to properly use this event.
GdViewer1.PdfShowDialogForPassword = false
//Add the event.
GdViewer1.PdfPasswordRequest += GdViewer1_PdfPasswordRequest;
//Define the event.
void GdViewer1_PdfPasswordRequest(ref string Password)
{
//Display your own dialog box to allow users to insert the correct password.
}