انتخاب اولین ایتم
انتخاب اخرین ایتم
کد:
Private Sub CommandButton1_Click() Dim i As Long For i = ListBox1.ListCount - 1 To 0 Step -1 ListBox1.ListIndex = i Next i End Sub
انتخاب اخرین ایتم
کد:
Private Sub CommandButton2_Click() Dim i As Long For i = 0 To ListBox1.ListCount - 1 ListBox1.ListIndex = i Next i End Sub
کامنت