Link to home
Start Free TrialLog in
Avatar of aclaus225

asked on

Vertical Slider in VB Does Not Go Between Numbers

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

Open in new window

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.
Avatar of John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou
Flag of Greece image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
from 10 to 0 set value =10

*There is a "Then" in my firtst post ...delete it