4-7: Exercises

A sample Stopwatch interface:
at start-up...


running...


stopped.

Exercise 4-10: Stopwatch

Create a VB project that implements a stopwatch. Display the elapsing time in labels using the format mm:ss.t (minutes in 2 digits, colon, seconds in 2 digits, dot, tenths of seconds).

Provide whatever functionality is needed to let the user:

They should be able to Exit at any time.

The images to the right show one approach to the user interface, your design need not be the same. It uses three (3) buttons, in addition to the Exit button:

Start
starts the clock
hides itself
shows the Stop button
Stop
stops the clock
hides itself
shows the Reset button
changes the Start button Text property to "Resume"
shows the Start button
Reset
hides itself
changes the Start button Text property to "Start"
shows the Start button
Resume
is actually Start