Can anyone tell me why my progress bar is not working?... it was working fine till I decided to add tabs to my browser.
This is the code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Progress Bar Me.lblApplicationStatus.Text = "Ready" End Sub Private Sub Browser(ByVal sender As Object, ByVal e As Windows.Forms.WebBrowserDocumentCompletedEventArgs) Me.lblApplicationStatus.Text = "Navigating to:" + e.Url.Host.ToString() End Sub Private Sub Browser_ProgressChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) If e.CurrentProgress < e.MaximumProgress Then If pbStatus.Value >= pbStatus.Maximum Then pbStatus.Value = pbStatus.Minimum Else pbStatus.PerformStep() End If Else pbStatus.Value = pbStatus.Minimum End If End Sub Private Sub Browser_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) If My.Application.Info.Title <> "" Then Me.Text = My.Application.Info.Title + " - " + e.Url.Host.ToString() Else Me.Text = System.IO.Path.GetFileNameWithoutExtension( _ My.Application.Info.AssemblyName) + " - " + e.Url.Host.ToString() End If Me.lblApplicationStatus.Text = "Ready" End Sub
Thanks!

New Topic/Question
Reply




MultiQuote





|