I have a splash screen set up with a 5 second timer, no problems there. When I try to add a Progress Bar it does not function. This is for a school project but usually I don't have problems. This is my first time using a progress bar but maybe this requires some special touch I am currently unaware of.
VB.NET: Progress bar problem with a timer
Collapse
X
-
-
The basic problem most people run into is not realising that the progress bar doesn't actually do anything for itself. It's just a fancy way of displaying the information you pass to it.
You start out by setting the upper and lower limits. Then periodically you pass it a value (within these limits) to say how far you have progressed. It merely displays that value in a graphical format.
So, it's up to you to track your progress, and periodically pass a value to the ProgressBar control. Clear?Comment
-
[code=VBNET]While (Me.uiProgressB ar.Value < Me.uiProgressBa r.Maximum)
Me.uiProgressBa r.Value = Me.uiProgressBa r.Value + 1
End While
Me.Close()[/code]
This is what I have inside the Timer function. I must be missing something here. I'm assuming the Timer function doesn't perform the commands inside it until the timer has completed its intended duration. How can I force it to check or something similar? Or maybe I'm using it entirely wrong, I'll keep looking, though.
I'm using VB.NET by the way.
EDIT: I got it working now :)Last edited by Killer42; Dec 18 '07, 09:43 PM.Comment
Comment