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





In This Topic
EnabledProgressBar Property (GdViewer)
In This Topic
Specifies if a progress bar is displayed in the GdViewer control when performing an operation, which raises a progression callback.

Turning this property to true activated the progress bar when loading or saving files using web transfer. If you set this property to false, the progress bar will not display.

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

Property Value

The default value is true.
Remarks
Just to inform you, that the progress bar can only be activated during web transfer operations.
Example
How to disable displaying the progress bar when loading your image using web transfer.
'We assume that the GdViewer1 control has been properly integrated.
'Disabling displaying the progress bar.
GdViewer1.EnabledProgressBar = False
If GdViewer1.DisplayFromHTTP("www.mywebsite.com", "/demo/image.tif", 443) = GdPictureStatus.OK Then
    'Do your stuff here.
Else
    MessageBox.Show("This file can't be displayed. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.DisplayFromHTTP")
End If
//We assume that the GdViewer1 control has been properly integrated.
//Disabling displaying the progress bar.
GdViewer1.EnabledProgressBar = false;
if (GdViewer1.DisplayFromHTTP("www.mywebsite.com", "/demo/image.tif", 443) == GdPictureStatus.OK)
{
    //Do your stuff here.
}
else
{
    MessageBox.Show("This file can't be displayed. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.DisplayFromHTTP");
}
See Also