EnabledProgressBar Property (GdViewer)
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.
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);
}
'Declaration
Public Property EnabledProgressBar As Boolean
Property Value
The default value is true.
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");
}