Hey everyone,
So recently my sister got herself her own laptop (okay it's been a year or so). Anyway, she's been getting horrible at staying up super late messing around on it. Well I decided I'd help my parents out and write a program to control her laptop a little.
One of the features I want to do is control when an application can run (such as Skype). So I plan to add a time stamp feature of when an application can run. So if the time passes, the application will be closed. Now I want to find a way to prevent it from being re-opened. I could do a constantly like while loop that is checking ever so often, but I am wondering if there's some better way to do this.
(Also a bonus, timers I know can trigger events, so I was wondering, is there a way to have an event trigger when a certain time is reached? I know I could set up a timer by creating a TimeSpan between the current time and end time, but I worry a problem could arise with this).
Thanks as always