Generate progressbar with WebBrowser

By afp_romania on Dec 02, 2012

This code will show you the remaining "time" until the page loads 100%, and this progressbar will be located in Statusbar of your application.

Private Sub WebBrowser1_ProgressChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs)
        If e.CurrentProgress >= 0 Then
            ToolStripProgressBar1.Maximum = e.MaximumProgress
            ToolStripProgressBar1.Value = e.CurrentProgress
        End If
    End Sub

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.