Thread: Countdown timer

  1. #1
    george7378
    Guest

    Countdown timer

    Hi everyone,

    I have the following window:

    Image

    What kind of code would I use to allow the user to enter a number, press start, and see the countdown progress in the second text area, i.e - it copies their number to the second area, and reduces it by 1 every second?

    I'm using Windows XP and VC++ 2008.

    Thanks.

  2. #2
    The Autodidact Dante Wingates's Avatar
    Join Date
    Apr 2010
    Location
    Valhalla
    Posts
    56
    Quote Originally Posted by george7378 View Post
    Hi everyone,

    I have the following window:

    Image

    What kind of code would I use to allow the user to enter a number, press start, and see the countdown progress in the second text area, i.e - it copies their number to the second area, and reduces it by 1 every second?

    I'm using Windows XP and VC++ 2008.

    Thanks.

    Well as far as I remember, you should be using a... timer... :P

    Its been a while since I used the .net framework, but as far as I remember there is a class named "timer" you can use to do what you want... Remember: google is your best friend...

    Here, this should help you


    I can only show you the door, the logic itself is up to you

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Countdown timer question:
    By Vadurr in forum C Programming
    Replies: 3
    Last Post: 11-22-2010, 08:13 AM
  2. SIGALRM and timer
    By nkhambal in forum C Programming
    Replies: 1
    Last Post: 06-30-2008, 12:23 AM
  3. tic tac toe crashes :(
    By stien in forum Game Programming
    Replies: 4
    Last Post: 05-13-2007, 06:25 PM
  4. Replies: 4
    Last Post: 08-13-2003, 07:25 PM