Trackbar Help

NoIdeas

Active member
Joined
Aug 13, 2011
Messages
25
Location
Sweden
Programming Experience
1-3
Hi everybody!

I would like to know how you make the minimum value of a vertical trackbar, be on the top?

 

Attachments

  • Trackbar Ex 1.png
    Trackbar Ex 1.png
    1.3 KB · Views: 19
You don't but, given that the TrackBar itself doesn't actually display any numbers, it doesn't matter. You can simply declare a property that will "invert" the value for you, e.g.
Public Property ActualValue() As Integer
    Get
        Return TrackBar1.Maximum - TrackBar1.Value
    End Get
    Set(ByVal value As Integer)
        TrackBar1.Value = TrackBar1.Maximum - value
    End Set
End Property
 
Back
Top