hello,
I'm using the Sleep function currently in some VB code so my program stops and waits until whatever time I specify for it to, but the problem with Sleep, is the user of my program has no idea how much time has elapsed. What I'd like to do is instead have a fuction that I can pass to it the time in seconds that I want to elapse, then that function displays a small window that shows the time counting down second-by-second in real time and also has a button that when clicked stops the countdown and executes the function.
Could anyone share with me the code that would acomplish this?
thanks in advance,
david
I'm using the Sleep function currently in some VB code so my program stops and waits until whatever time I specify for it to, but the problem with Sleep, is the user of my program has no idea how much time has elapsed. What I'd like to do is instead have a fuction that I can pass to it the time in seconds that I want to elapse, then that function displays a small window that shows the time counting down second-by-second in real time and also has a button that when clicked stops the countdown and executes the function.
Could anyone share with me the code that would acomplish this?
thanks in advance,
david