p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer (http://p2p.wrox.com/forumdisplay.php?f=574)
-   -   Lesson4 Ex2&3 (http://p2p.wrox.com/showthread.php?t=84540)

caa5042 July 30th, 2011 02:58 PM

Lesson4 Ex2&3
 
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..

ex3: how do i rotate the second HScrollBar 90 degrees?
thanks in advance for the help

Rod Stephens July 30th, 2011 03:05 PM

Quote:

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.

Quote:

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.

caa5042 July 30th, 2011 04:11 PM

EDITED,................................

caa5042 July 30th, 2011 04:25 PM

Thanks, Rod.


All times are GMT -4. The time now is 07:50 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.