Tutorials Navigation

Tutorials: 12,367 Categories: 33
Total Views: 22,955,968

[VB.NET] How to use a progress bar

Tutorial Name: [VB.NET] How to use a progress bar  

Category: Programming Tutorials

Submitted By: Maj

Date Added:

Comments: 3

Views: 111

Share:


Using a timer can be tricky in Visual Basic. So here's a guide to show you how!




1. Add a timer, button and a progress bar to a form like below
https://gyazo.com/e0735eea2baec2f211f0583b50b0c9a8.png

2. Edit the timers code to

ProgressBar1.Increment(+1)


You can change the value. This means that every time the timer ticks (100ms) it will go up by 1%. However you can play with the timer and increment settings to find one to suit

3. Edit your button text to

Timer1.Start


Your all done! Now debug your application and give it a test. It should look something like below

https://gyazo.com/30e06be73b20e2ba0cbb483875d78539.png

Ratings

Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[VB.NET] How to use a progress bar" :: Login/Create an Account :: 3 comments

If you would like to post a comment please signin to your account or register for an account.

KyloCruxPosted:

Seems real easy to setup, thanks Maj.

HaloPosted:

Seems pretty easy to do, awesome.

MickersPosted:

Effective and easy tut, thanks!