View Single Post
  #2 (permalink)  
Old February 9th, 2012, 04:54 PM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

Offhand I don't see anything wrong with that code.

Note that you shouldn't need to type most of it. If you double-click on the timers, the code editor should open up and create empty event handlers for you. Then you only need to fill in the middle.

My guess is perhaps the timer's aren't named Timer1 and Timer2 on the form. Open the form in the designer and check their names. They must match what's shown in the "Handles" clauses. If they don't match, either rename the controls or change the code so they match.

If that doesn't work, zip up the project and send it to me ( and I'll take a look at it.

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote