I have following idea:
- extract your code from _SpinDown, _SpinUp to outside procedure like Sub S_Down, Sub S_Up and then call those procedures in place of your code you need it.
Best Regards
I have following idea:
- extract your code from _SpinDown, _SpinUp to outside procedure like Sub S_Down, Sub S_Up and then call those procedures in place of your code you need it.
Best Regards
I tried, but I can't solve the problem.
Now I changed Spinbutton. It doesn't have Private Up or Down, but:
End Sub![]()
Private Sub SpinButton1_Change() If SpinButton1.Value > ListBox1.ListCount Then SpinButton1.Value = ListBox1.ListCount End If If ListBox1.ListCount > SpinButton1.Value And SpinButton1.Value >= 0 And SpinButton1.Value <= ListBox1.ListCount Then ListBox1.ListIndex = SpinButton1.Value Label1.Caption = SpinButton1.Value End If
and
![]()
Private Sub ListBox1_Change() (...) SpinButton1.Value = ListBox1.ListIndex TextBox1.Text = MyArray(ListBox1.ListIndex, 2) TextBox1.SetFocus 'I don't know why, but textbox1 just get the focus every two times that I click the spinbutton. End Sub
Last edited by marlonsaveri; 07-19-2011 at 03:48 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks