| 'Needed 'Form called "Form1.frm" 'List box called "List1" 'Command button called "Command1 Option Explicit Dim L1_Index As Integer Dim L1_Count As Integer 'Dim statements must go in 'Option Explicit of Form1.frm Private Sub AutoScroll() List1.Refresh 'I added this to slow the scroll demo. L1_Count = List1.ListCount List1.ListIndex = L1_Count - 1 L1_Index = L1_Count End Sub Private Sub Command1_Click() 'This sub is NOT needed for the AutoScrollSub 2 work Dim I As Integer For I = 1 To 25 List1.AddItem I AutoScroll 'Runs the AutoScrollSub Next I End Sub |
AutoScroll Listbox |
Express News India | Freelance ecommerce web development India