Link to home
Start Free TrialLog in
Avatar of n-generation
n-generation

asked on

pausing the program.

Is there a way to pause the program and then make it continue say a few seconds later?  For example I want to display an image, then I want to hide it after a number of seconds and continue with the rest of the code.  I understand this is possible using a timer.  Is there any other way in doing this without using a timer?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore 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
Avatar of n-generation
n-generation

ASKER

Yea this will do just fine, but can you explain it to me.  What is Kernel32?  Is it just a built in function?
Basically, we can use API (Application Programming Interface) to do pause program. Kernel32.dll is the core library that every windows platforms have to doing the regular tasks/jobs for windows operation.

And the function Sleep in Kernel32 is one of the function available in Windows, so that means actually we use external function from VB to do 'what VB cant do'.

Hope this is clear
Thank you so much! Really good explaination.  And learnt something new today =)