Visual basic 6 help please

Discussion in 'Windows - Software discussion' started by weedude99, Jun 27, 2007.

  1. weedude99

    weedude99 Regular member

    Joined:
    Dec 27, 2006
    Messages:
    214
    Likes Received:
    0
    Trophy Points:
    26
    Hi
    I need to know how to create a timer, in which after 30 seconds a messagebox will pop up?

    Anyone able to help?
     
  2. Indochine

    Indochine Regular member

    Joined:
    Dec 21, 2006
    Messages:
    1,447
    Likes Received:
    0
    Trophy Points:
    46
    We don't do peoples homework for them.

    Read your class notes and ask your teacher if you don't understand what you have to do.

     
  3. weedude99

    weedude99 Regular member

    Joined:
    Dec 27, 2006
    Messages:
    214
    Likes Received:
    0
    Trophy Points:
    26
    its not homework!
    im doing it because i want to start learning programming
     
  4. Indochine

    Indochine Regular member

    Joined:
    Dec 21, 2006
    Messages:
    1,447
    Likes Received:
    0
    Trophy Points:
    46
    well, first you need to create a form, then put a button on it, with some text on it like "go!" or "start", then define a button click event, in which you read the system clock, and then in a loop check if 30 seconds has passed, and when it has, exit the loop and create a message box, with appropriate text, with an OK button

    Anyway, that's how I would do it.

     
  5. weedude99

    weedude99 Regular member

    Joined:
    Dec 27, 2006
    Messages:
    214
    Likes Received:
    0
    Trophy Points:
    26
    k thanks
     

Share This Page