General information
Category:
Coding, syntax & commands
Did you ever find a solution to this? Why do you want the list to auto-scroll?
>I didn't get a reply last time I sent this, ( DevCon was more important I guess), so I'm trying again.
>
>On a form I have a listbox, with RowSourceType=7 (Files) & RowSource="images\*.jpg".
>
>I want the user to have an auto-scroll facility, so have added a timer to the form, with the following code in the Timer event
>
>thisform.listbox1.ListIndex = thisform.listbox1.ListIndex+1
>
>(there's a bit of checking to make sure I don't go past the end of the list).
>
>What I have found is that without the timer enabled, I can change drives/directories by clicking on the appropriate entries in the displayed list with no problems. If I enable the timer & allow a timer event to take place, then the listbox acts as I expect it to, scrolling through the list.
>
>The problem is if I change drive/directory first, by clicking on the entries in the list, & then enable the timer & allow timer events to take place, then disable the timer & try to change drive/directory, I am placed straight back to the original directory & have to work my way back to where I want to be.
>
>I've tried this with a button as well & it appears that a programmatic change of ListIndex, causes this problem.
>
>Am I doing something wrong or have I run into a problem with programmatically changing the ListIndex property.
>
>TIA
>Paul
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only