|
-
Feb 10th, 2000, 06:35 PM
#1
Thread Starter
Member
Howdy All
My question is how do you scroll down a text box in code? and how to you highlight an item in a listbox and then scroll down to the next one and highlight that so you can sort of check a listboxes content line by line.
thanx
------------------
Mooose
-
Feb 10th, 2000, 09:30 PM
#2
Example: Highlighted item in the Listbox.
place a listbox on your form and called "List"
and place two buttons on it. name the first button "cmdadd" and the second "cmdnext"
and place this code in your form.
Private Sub cmdadd_Click()
Dim I As Long
While Not I >= 1000
List.AddItem Rnd(I)
I = I + 1
Wend
List.ListIndex = 0
End Sub
Private Sub cmdNext_Click()
List.ListIndex = List.ListIndex + 1
End Sub
Now you can easy scroll all the items...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|