Wednesday, August 25, 2010

Simple Timer

Ohhh... once sir goes through it with us it makes so much sense. Anyways here is the code for a simple timer that counts in 0.1 seconds and also resets.

Make sure you put the Dim part right under public class (that's the first line).
For the timer have the Enabled property set as false to begin with and if you wanted to change it so it counts as seconds not 0.1 seconds you chage the interval to 1000 and the +0.1 to +1.
I used 2 buttons, 1 label, a timer and the variable clock.

No comments:

Post a Comment