GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / SilentMode Property
Example





In This Topic
SilentMode Property (GdViewer)
In This Topic
Indicates, whether error reporting through MessageBox dialogue is disabled or not when loading password-protected or encrypted PDF documents. The MessageBox dialogue will display when a password is needed, when users provide an invalid password or when an encryption error occurs.

Turning this property to false enables error reporting through MessageBox dialogues. If this property is set to true, possible errors are not reported.

Syntax
'Declaration
 
Public Property SilentMode As Boolean
public bool SilentMode {get; set;}
public read-write property SilentMode: Boolean; 
public function get,set SilentMode : boolean
public: __property bool get_SilentMode();
public: __property void set_SilentMode( 
   bool value
);
public:
property bool SilentMode {
   bool get();
   void set (    bool value);
}

Property Value

The default value is true.
Remarks
This property is only meaningful for encrypted PDF documents.
Example
How to utilize this property in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated.
'Enabling error reporting through built-in MessageBox dialogues.
GdViewer1.SilentMode = False
//We assume that the GdViewer1 control has been properly integrated.
//Enabling error reporting through built-in MessageBox dialogues.
GdViewer1.SilentMode = false;
See Also