I think I screwed up something. How do I get the progress bar to show the web browser navigation process.
Printable View
I think I screwed up something. How do I get the progress bar to show the web browser navigation process.
still need help on this one... i've been looking all over google and MSDN with no luch...
my progress bar control is named "toolstripprogressbar1" and the web browser control is "webbrowser1"
how do i get the progress bar to show the web browser's page loading progress?
You handle the ProgressChanged event of the WebBrowser. It provides you with the current progress values and it's up to you to assign them appropriately to the progress bar.
can you give me an example of what you mean?
i searched this topic on here already, but i didn't find what i needed...
i've done it twice before, but i just can't recall it... the first 2 times i had my book with me, but i don't have it now...
how would i connect "webbrowser1" to "toolstripprogressbar1" ?
could you give me a code that might work? i'd really appreciate it...
I'm sure you would appreciate it, but where's the fun in having someone else do it for you? As I said, handle the ProgressChanged event of the WebBrowser. You've created event handlers before haven't you? Also, read the documentation for the WebBrowser.ProgressChanged event. Oddly enough, it explains what it does and how to use it.
i'm pretty much getting an error on everything... i'm not sure if i'be been coding too long or what... my brain is fried... all the other coding i need is simple... except for a few things...
ok, let's get through this... it's simple and i've done it before...
webbrowser1.progresschanged
is giving me an error... let me try losing the 1
Again, you're saying you get an error without any indication of what it is. If you want help with an error then show us what you did and tell us what the error message is.
VB Code:
Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged Me.ProgressBar1.Maximum = System.Convert.ToInt32(e.MaximumProgress) Me.ProgressBar1.Value = System.Convert.ToInt32(e.CurrentProgress) End Sub
thanks for the code... it worked perfect... i would have been at that until tomorrow when i go to storage and get my programming books...
thanks again...
i have no idea how to mark this as resolved... but i'm about to look again...