Click to return to the Reusing Browser Technology home page    
OnVisible Event     PropertyChange Event     WebBrowser Control Events    
Web Workshop  |  Reusing Browser Technology

ProgressChange Event


Occurs when the progress of a download operation is updated.

Syntax

Private Sub object_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)

Parameters

object
An object expression that evaluates to an object in the Applies To list.
Progress
A long integer that specifies the amount of total progress to show, or -1 when progress is complete.
ProgressMax
A long integer 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).

Applies To

InternetExplorer, WebBrowser

See Also

DownloadBegin, DownloadComplete, Navigate


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.