Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

VS 2005 How To Make The Progress Bar A Shot-Power Bar?

$
0
0
I'd like to know how to make the Progress Bar a shot-power gauge/bar.
In example, if the Minimum = 0, and Maximum = 100,

when the Progress Bar's value comes to 100, it will decrease again to 0,
the progress bar will stop when a button is clicked.

i have a code like this, but the powerbar's value stops at 90 or something,

Power_Tick //ProgressBar's Name

PowerBar.Step = 5
PowerBar.Value += 5
If PowerBar.Value >= PowerBar.Maximum Then
PowerBar.Value -= 5
ElseIf PowerBar.Value <= PowerBar.Minimum Then
PowerBar.Value += 5
End If

Viewing all articles
Browse latest Browse all 27355

Trending Articles