|
The Digital Clock
- Create a new Visual Basic Project
- Drag a label onto the form
- Erase the caption
- Change the name property of the label to lblTime
- Change the font property of the label to a style and size you like
- Drag the timer icon onto the form
- Change the Interval property to 1000
- Double-click the timer button and add the following code:
lblTime = time
- Drag a command button onto the form
- Double click the command button and add the following code:
end
- Run your program!
|
|