trackbar problems

topic posted Tue, February 24, 2004 - 7:53 PM by  Unsubscribed
I am having problems getting my trackbar to work the way I want it to. It starts out at 0 and only will go upto 1 no mater how far you move the thumb. Here I will post the code for the trackbar only and not the whole program. So if someone could mess around with my code and see what I am doing wrong that would be great.
Thanks in advance.
Dave

Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
Dim min As Integer
Dim max As Integer

numbers(min, max)

TrackBar1.Minimum = 1
TrackBar1.Maximum = 10


'If min <= 10 Then
'min = min + 1
'Else : min = min + 1
'End If

min = min + 1

Label1.Text = min


End Sub
posted by:
Unsubscribed

Recent topics in "Visual Basic & Stuff"