Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Tutorial]Web browser Progress Bar[Tutorial]

Hello everyone!, I wanted to make my 100th post useful. So I found that a couple of people have trouble with this and it's hard to find with a search. So, I made a simple and easy tutorial for people to follow if they need help. Hope this helps!

You need a progress bar.
First You need to declare 2 Variables as Long's
Code
Dim Max As Long
Dim Progress As Long


[img]http://choopd.com/?h=ab793cfb51ddb2a369ab767aeb6f9fa8[/img]


Then we want to find the Webbrowser1_ProgressChanged Event.


[img]http://choopd.com/?h=d27b3051341375a60664072b7d4a95d3[/img]


In There we want to Make the variables we declared into numbers.
Code
Progress = e.CurrentProgress
        Max = e.MaximumProgress


[img]http://choopd.com/?h=cdd03d5448e7bb3f86901dd70d36e777[/img]


Now It gets down to the Programming.
Code
Me.ProgressBar1.Maximum = Max
        If Progress = -1 Then
            Me.ProgressBar1.Value = Max
        Else
            Me.ProgressBar1.Value = Progress
        End If



[img]http://choopd.com/?h=21e42c1927d030991d7715e1980cc768[/img]



Tada! You just created your progress bar for your web browser. Tweak/use this code to your liking. Have fun!

Twp
[Image: PPYTfT1.png]
Thanks but I occasionally get errors.
(Jul 3, 2015 11:27 AM)VmX5 Wrote:  Thanks but I occasionally get errors.

Damn dude, where did you buy your shovel from to be able to dig a 4 year old thread. 🤫


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Freed0m36Nov 22, 2018 02:59 AM 7 204 Nov 22, 2018 02:59 AM
Last Post: PoP-Hacker
[Shell] by HackooMar 29, 2018 04:04 AM 5 289 Mar 29, 2018 04:04 AM
Last Post: Hackoo
[C#] by BahNahNahNov 8, 2017 08:59 PM 8 1,025 Nov 8, 2017 08:59 PM
Last Post: Rigg