473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

scrolling listbox?

Hey,

I'm trying to make a listbox with a moveable index on a timer. So every second the selected index moves down one and so forth in that fashion. When it reaches the last index it should go back to the top and repeat until timer is shut off.

Expand|Select|Wrap|Line Numbers
  1. Private Sub tmrAttempt_Timer()
  2. On Error Resume Next
  3. Dim i As Integer
  4. For i = 1 To List1.ListCount - 1
  5.     List1.ListIndex = List1.ListCount - 1
  6.     If i = 0 Then List1.ListIndex -1
  7. Next i
  8. End Sub
Any help is greatly appreciated.

-Evanz
Dec 16 '07 #1
1 1215
Killer42
8,435 Expert 8TB
I think you've got the wrong idea about how to use the timer. Each time the timer "ticks" you should just move the selection one place, not loop through them.
Dec 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: J P Singh | last post by:
Hi There We have dropdown on ASP page. The problem is we have about 900 items in the dropdown. Users scrolling through the list have become very frustrated in the past. Can someone suggest...
4
by: headware | last post by:
I have a <select> control that contains many entries. It allows the user to multi-select a group of them, click a button, and store the selected data in a database. Normally they do this starting...
3
by: Filips Benoit | last post by:
Dear All, Scrolling a listbox having a large numbre of coloms and row is slow. Is there a tric to speed it up? Filip
4
by: deko | last post by:
I have an Access 2003 mdb with a Main Form that has a ListBox with a long list of items. The problem is the scroll bar on the ListBox does not scroll all the way to the end unless you first scroll...
0
by: Tim Bücker | last post by:
Hello. I have a listview and a listbox. If the listbox gets vertically scrolled, the listview should make the same movement. So I have extended the listbox control: public class...
3
by: Oddball | last post by:
Hello again, I have a problem that I can't seem to find any help for. I'm probably not typing the correct words into goo... *cough*... MSN. I have created a user control which I would like to...
2
by: Gaetan | last post by:
I have some log data maintained in a DB that I would like to display on a web page. Some rows of the DB table are wider than the web page therefore horizontal scrolling will be required to view the...
0
by: =?Utf-8?B?YW1iZXI=?= | last post by:
Hello! I have a form that contains a tabcontrol, that is populated based on which record a user selects in a listbox on the form. I just added code to 'mytab.validating' so if the user tries to...
0
by: LostInMd | last post by:
Hi All, I've got an owner drawn listBox where I draw and measure the items that I add to the listBox. For example, I have a listBox that can only display 10 characters on each horizontal line. ...
0
by: arnabit | last post by:
have two listbox in a page in my website. one listbox contain report owner name the other one contain the report name.. both the listbox are databound. what i wanted is that when i scroll one...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.