how trigger an event on specific time of day
pls suggest code
Windows Task Manager
Get it to run your code / app at the time of day you need. Else you will have to design something in the app which would need to be running all the time to trigger at the right time.
You can use the Windows Task Scheduler to run a program at a given time. If you want your app to be running, then perform some action at a given time, you can add a Timer control to your app. Set the timer interval to whatever interval you want to test, then at each timer tick (timer event) you can check if the current time is equal to (or within a given number of seconds of) the trigger time. It's better to check using a deadband rather than an exact time in case your app is delayed at the critical time.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.