I have class that extends ProgressBar which should release a simple timer.
public partial class TimerBar: ProgressBar
{
public TimerBar()
{
InitializeComponent();
Value = 100;
}
...
public void Start()
{
int x = 100/Timer; // procent per second
for (i = Value; i > 0; i--) {
Value -= x;
}
}
}
How to set delay for 1 second before Value -= x
?
(It should not stop other elements)