back


The Digital Clock
  1. Create a new Visual Basic Project
  2. Drag a label onto the form
  3. Erase the caption
  4. Change the name property of the label to lblTime
  5. Change the font property of the label to a style and size you like
  6. Drag the timer icon onto the form
  7. Change the Interval property to 1000
  8. Double-click the timer button and add the following code:
    lblTime = time
  9. Drag a command button onto the form
  10. Double click the command button and add the following code:
    end
  11. Run your program!