好吧,我正在尝试这样的事情:
Private Sub TrackBar1_Scroll(sender As Object, e As EventArgs) Handles TrackBar1.Scroll
Dim scv As Int32 = TrackBar1.Value
Dim uni As [String] = "ms"
Select Case scv
Case Is > 1000
scv = scv \ 1000
uni = "s"
sender.SmallChange = 1000
Case Is > 100
sender.SmallChange = 50
Case Is > 50
sender.SmallChange = 50
Case Is > 25
sender.SmallChange = 25
Case Is > 10
sender.SmallChange = 15
End Select
Label4.Text = (scv & uni).ToString
End Sub
但是它的 onyl 与箭头键<和>一起使用,如果我用鼠标移动或鼠标滚轮尝试它,它就不起作用。而且...只有当我从左到右时才有效...
我必须做什么?:(