I would like to use a timer , to execute a time, pause and stop.
has spent several days that i search how to use in the best way a timer because, as you know, it does not exist a timer directly unless to create it.
so, I followed these informations by creating a timer, using a timespan, timercallback and stopwatch :
I think that stopwatch is the best. And with several manupulations, i have what i wanted, but the problem is that the time runs out that every time I press the run button, when I should press once on the button.
With a Thread too, I had done but it dis not change anything. I do not know why it do that.
And it is the same with a Datetime, I would like that the time of the Datetime continues to run while i did not press another button to stop it.
If someone would have an idea avout it, really thank you in advance.