Link to home
Start Free TrialLog in
Avatar of JavaGuy78
JavaGuy78Flag for United States of America

asked on

Pause/Wait without Locking up application

I have an application that runs a command or opens a dialog at a user specified interval.  I am using the timer to set the interval.  When I attempt to set the timer's interval above 64 seconds, I get an error "Invalid Property Value."  I thought about using the sleep and tried it.  It successfully works for the interval part, but if I try to do anything else in the application while sleep is running, it won't let me do anything.  As soon as the interval has played out, then it executes the commands I put in while "Sleep" was running.  

Is there a way of increasing the Timer interval above 64 seconds without locking up the application?

Thanks,
Javaguy78
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could also use the SetTimer and KillTimer API's.
Or the MultiMedia DLL.

Let me know if you would rather go those routes and I can you hellp with code there also.