I am trying to find an example of how to create a timer event that will run regardless where a user is within the app. The intent of this is to at a specific time ( for example let’s say at 10:00:00 ) the timer will trigger a query that will then proceed to display what I design it to. Everything except WHERE to put the timer event so that it will run regardless where a user is in the application is eluding me. The rest is easy peasy stuff… I think
Subclass a Timer and implement the Action event. Create an App property to hold an instance, then instantiate it in App.Open (or wherever is appropriate).
You will probably want to add properties for NextRun as DateTime, LastRun as DateTime, and Interval. Have the Timer wake up periodically to check the current DateTime against the NextRun and adjust its Period accordingly. Once it is past the NextRun, move NextRun to LastRun and set a new NextRun based on Interval.
Or something like that.
Okay, I’ll poke at it and see what I can detonate! Thanks!