How to configure a program to run automatically once a day in c #

advertisements

I am a newbie to programming So I need lot of support from my friends I am creating a windows forms application and I need that program to run automatically once a day and need to close itself after 2 minutes of the execution how to do it....


I need that program to run automatically once a day

You can use Windows Task Scheduler.

need to close itself after 2 minutes of the execution

You can implement in your application using many different approaches.
For instance, since you write WinForms applications, you can use Timer.