troubleshooting Question

Vertical Slider in VB Does Not Go Between Numbers

Avatar of aclaus225
aclaus225 asked on
Visual Basic.NET
2 Comments1 Solution237 ViewsLast Modified:
Greetings.  I have a Visual Basic App that I am trying to create where I think that I have the code correct, but when I run debug I don't really get to select any number.  
The code is:
    Private Sub TrackBar1_Scroll(sender As System.Object, e As System.EventArgs) Handles AGPHBar.Scroll
        'Set the max, min, smallchange, and largechange values on the scroll bar.  
        AGPHBar.Minimum = 10
        AGPHBar.Maximum = 0
        AGPHBar.SmallChange = 1
        AGPHBar.LargeChange = 2
        AGPHBar.Value = 0


        HrTextBox.Text = CStr(AGPHBar.Value)

    End Sub

It seems like a really simple thing, so I am not quite sure why I am only able to select 10 or 0 on the slider bar.
ASKER CERTIFIED SOLUTION
John (Yiannis) Toutountzoglou
Instructor Multiengine Pilot

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros