Skip to content

ProgressChange Event

Description

Fires when the progress of a download operation is updated on the object.

Syntax

Public Event ProgressChange( _
    ByVal Progress As Long, _
    ByVal ProgressMax As Long _
)

Parameters

  • Progress: Long that specifies the amount of total progress to show, or -1 when progress is complete.
  • ProgressMax: Long that specifies the maximum progress value.

Remarks

The container can use the information provided by this event to display the number of bytes downloaded so far or to update a progress indicator.

To calculate the percentage of progress to show in a progress indicator, multiply the value of Progress by 100 and divide by the value of ProgressMax (unless Progress is -1, in which case the container can indicate that the operation is finished or hide the progress indicator).

See Also

WebBrowser Control


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.