how to make one function for a webbrower?
codes?
Printable View
how to make one function for a webbrower?
codes?
WebBrowser control for the webbrowser, ProgressBar control for the progress bar, create the code to approximate progress by yourself or you are never going to learn programming. Set the value of the progressbar with the Value property.
If I remember correctly, you said that you were a beginner programmer. If so, I would urge you to learn how to create good, working algorithms. Try the tutorials at www.homeandlearn.co.uk (the VB.NET section).
Also, it is a good idea to include the question in the title, and a detailed description in the post, as well as your VS/.Net version, instead of writing just a sentence or two in total.
Here is some code:
vb Code:
Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged progress.Maximum = CInt(e.MaximumProgress) progress.Value = CInt(e.CurrentProgress) End Sub
Though as obi1 said you should learn more about this so if you have any quesitons about the code i supplied just ask.
Thank you both, im gonna take a look at the tutorials and try the codes too. oh dang i have another question but ill make a new post for it