Wrox Programmer Forums
BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' Visual Basic Programming 24-Hour Trainer by Rod Stephens; ISBN: 978-0-470-94335-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' Visual Basic Programming 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 4th, 2011, 10:50 PM
Authorized User
Join Date: May 2011
Posts: 46
Thanks: 27
Thanked 0 Times in 0 Posts
Thumbs down Ex 10-3 question

What are the reasons to choose trackbars or horizontal scroll bars?
Old July 5th, 2011, 10:50 AM
Rod Stephens's Avatar
Wrox Author
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

Mostly this is a matter of style. Trackbars can show tick marks so it's easier for the user to select exactly the right value, particularly if there aren't too many values (a dozen or so). ScrollBars don't show the tick marks.

A Trackbar's height is fixed and a ScrollBar can be as narrow as you like so they can take up less room.

You can set a ScrollBar's Minimum and Maximum to span a large range, when the same range would look bad if a Trackbar displays its tick marks. That lets the user select a bigger range.

For both controls, you usually want to provide feedback like a label showing the current value to help the user know what is selected.

Personally, I don't like the appearance of the Trackbar and the fact that it's so big, but you can decide which you prefer.

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
The Following User Says Thank You to Rod Stephens For This Useful Post:
zavodney (July 5th, 2011)
Old July 5th, 2011, 01:28 PM
Authorized User
Join Date: May 2011
Posts: 46
Thanks: 27
Thanked 0 Times in 0 Posts

Thank you. I like the idea of adjusting the height.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding MVC patters. Chap 10 digitalsoul BOOK: Professional Enterprise .NET 0 May 24th, 2011 10:18 AM
Chp 10: mysql command question DMatt BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 13 October 7th, 2010 03:33 AM
Chapter 10 - UpdatePanel question caiman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 August 15th, 2010 12:05 PM
Another chapter 10 question. czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 4 April 3rd, 2005 09:12 PM
Question on chapter 10 - overriding RobMeade BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 4 August 12th, 2004 11:56 AM

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