Control ProgressBar With Button
Hi!
I'm new to Visual Basic, so I'm going to be asking questions on a regular basis. For now, I have just one question. I'm programming a game in Visual Basic 2008 Express Edition and I need to know how to control a ProgressBar with a Button. However, I want it so that the ProgressBar starts full and then decreases with each click of a Button. Is this possible? If so, can someone please demonstrate how I would code this?
Thanks you!
Re: Control ProgressBar With Button
The Value property of a ProgressBar is just an Integer telling the progressbar how what to display.
So, you would set a Maximum value of 100.. and do something like this:
vb Code:
ProgressBar.Maximum = 100
' Button click event..
ProgressBar.Value -= 10
chem