• Log in or sign up for an account here: https://www.sythe.org/login

How to use progress bars?

Bbri06

Apprentice
Joined
May 21, 2006
Sythe Gold
0
Messages
911
Can anyone explain to me how to use progress bars in Microsoft Visual Basics 2005 Express Edition? It would be greatly appreciated.
 
I would like to use them for the progress of a loading webpage.
 
well, then there must be some function in the webbrowser control to get progress or something. Then you just use it that way. It all depends on the web browser API.
 
Call the webbrowserprogesschangedeventargs in the system.windows.forms folder. Here is a example:

Private Sub WBPG(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged
ProgressBar1.Value = e.CurrentProgress
Label1.Text = CStr(e.CurrentProgress) & "%"
End Sub

It works well. But this code will catch the progress percentage of the webbrowser and apply it to a label and a progressbar. In this case, you do not have to use the progressbar1.maximum since you are calling the percentage from the e.
 
Runescape Gamblingrunescape gambling
Back
Top