(Newbie) Progres Bar For a Browser

Iam making a new browser, and I have a progress bar on it. It seems to work, ok... but, I keep getting these messages in the debugging immediate window: "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll" Now, it does act as if it is showing the progress, but it just doesn't look right.

This is what I currently use, but I want it to be more like FireFox or IE. Where it displays, 'Downloading...' and 'Done' when navigating. Please help this complete newbie. Thank you very much!


PrivateSub WebBrowser1_Navigating(ByVal senderAs System.Object,ByVal eAs System.Windows.Forms.WebBrowserNavigatingEventArgs)Handles WebBrowser1.Navigating

ToolStripProgressBar1.Visible =True

ToolStripProgressBar1.Value = 0

EndSub

PrivateSub WebBrowser1_ProgressChanged(ByVal senderAs System.Object,ByVal eAs System.Windows.Forms.WebBrowserProgressChangedEventArgs)Handles WebBrowser1.ProgressChanged

If ToolStripProgressBar1.Value = 100Then

ToolStripProgressBar1.Value = 0

Else

ToolStripProgressBar1.Value += 10

EndIf

EndSub

PrivateSub WebBrowser1_Navigated(ByVal senderAs System.Object,ByVal eAs System.Windows.Forms.WebBrowserNavigatedEventArgs)Handles WebBrowser1.Navigated

ToolStripProgressBar1.Value = 100

ToolStripProgressBar1.Visible =False

EndSub


[4681 byte] By [Computerman45] at [2007-12-16]
# 1
Does anyone know a solution to this? I decided to double post because most forums allow it after so long. I figured 3 days would be enough. Please correct me if I am wrong.
Computerman45 at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic Language...