Hack Forums
[.NET] [Tutorial]Web browser Progress Bar[Tutorial] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Tutorial]Web browser Progress Bar[Tutorial] (/showthread.php?tid=1950663)



[Tutorial]Web browser Progress Bar[Tutorial] - Twp™ - Nov 24, 2011

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


* - VmX5 - Jul 3, 2015

Thanks but I occasionally get errors.


* - +Haze - Jul 3, 2015

(Jul 3, 2015 11:27 AM)VirusCrafter5 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. 🤫