Sub Timer1_Tick
countDown = countDown - 1
lblCountDown.Text = countDown
pbTimeLeft.Progress = pbTimeLeft.Progress - 1
If countDown=0 Then
Timer1.Enabled= False
End If
End Sub
It is not working though? It is purely for visual purposes as the real count is kept by the countDown variable, but I still would like to use it.
I am not sure what I am doing wrong I did add DoEvents to the timer, but that didn't work either. Am I creating the progressbar correctly? Because no matter what I set .progress to it does not reflect the progress in the app.
Yes that is exactly what I am looking for, but I don't understand why it won't work within my project. I will do some digging on this to see what I can find.
Well apparently you can't use ProgressBar1.Initialize in the activity create area when trying to do this. Not sure why, but when I removed that it worked fine. Thanks!