Hi,
If you're using Windows Forms, use a System.Windows.Forms.Timer. Put the
timer on your form and attach to the Timer.Tick event. When the event
fires, call Application.Quit().
You can use System.Threading.Timer if you want, but this uses Windows
resources. The System.Timers.Timer class is more for server-based timers
that need better accuracy and ability to move between threads.
Regards,
-Adam.
John Devlon wrote:
Hi everyone....
I'm trying to make something work...
When I launch a new form, the application has to quit after a few seconds...
I searched the net for some hours and I can't find any usefull code ...
I noticed there are several timers in .net...
Which one do I use ?
Thanx
John