I have an application in which I am starting a timer for two task:
- On a single loop having one item.
- Having more than one item
Now when I have one item then timer starts slide show perfectly but when I have more than one item then I have to loop through it so the timer_tick event is not able to start on a continuous loop.
Is there any option such that I suddenly can start the timer..?
You’re lacking some more information for a more specific answer, but in case you’re talking about a Windows Forms app, all you have to do is calling
Application.DoEvents()from time to time, to allow other events to be processed (e.g. call it once after each iteration). For other techniques (e.g. WPF or ASP) there are similar approaches.