Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function to display a countdown

Status
Not open for further replies.

dgr7

IS-IT--Management
Dec 29, 2006
43
US
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
 
A quick search turned up the following results. There are many other examples available in this forum.

thread222-485096
thread222-286817

Swi
 
thanks for your help, those threads were useful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top