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





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.

Syntax
'Declaration
 
Public Property EnabledProgressBar As Boolean
 

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
See Also