Thread: Lesson4 Ex2&3
View Single Post
  #2 (permalink)  
Old July 30th, 2011, 03:05 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

on ex 2, my program runs but the stop button does not move. The code is correct ( i verified).... I dont know what's wrong..
Usually when a program that uses a timer isn't working, it's because the timer's Enabled property is never set to true. Check that the first timer's property is set to true at design time. (By default they start set to false.)

If that doesn't work, you should set breakpoints in the two event handlers and make sure they're being called.

ex3: how do i rotate the second HScrollBar 90 degrees?
thanks in advance for the help
For some reason, Microsoft makes the HScrollBar and VScrollBars separate controls instead of a single ScrollBar control that you can rotate. Use an HScrollBar for the horizontal scroll bar at the bottom of the form and a VScrollBar for the vertical one along the side of the form.

Otherwise the two controls are basically the same.

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

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