Help! I need to run my function every 5 mins but I don't know how and what to use. I tried using Restart but my whole application ill restart too.

Are you using WinForms or does the timer need to be instantiated programatically?

you can use timer control , as mikey said if you are working on winform application.
just add a timer control to your form , go to property window , set interval and call your function at timer tick event ,
HINT: in timer interval 1000 = 1 sec , so for 5 mint 5601000 = 5mint

Regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.