Link to home
Start Free TrialLog in
Avatar of pamwestphal
pamwestphal

asked on

Making an application wait for a specified period of time

I have an application that I would like to wait for a specified period of time before continuing on.  During this time I want events to be allowed to occur and I do not want 100% cpu usage.  I have tired using an application.doevents in a loop which causes 100% CPU usage and I have tried a thread.sleep which seems to make it so that events do not fire.  Any other suggestions?
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
If you don't want a polling loop then use a Timer() control...