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: 2,999, Level: 22
Points: 2,999, Level: 22 Points: 2,999, Level: 22 Points: 2,999, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 601
Thanks: 1
Thanked 84 Times in 83 Posts
Default

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 (RodStephens@vb-helper.com) and I'll take a look at it.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

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