Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox Question

Status
Not open for further replies.

Eightball3

Programmer
Nov 23, 2002
138
US
Can anyone tell me how I can make a listbox scroll programmatically? Thanks.
 
Well, If a listbox has say 100 values in it, it is possible to have a selected item out of the view in the listbox. You would then use the mouse to scroll down or up to view the selected item. I would like to know if there is a way to do this by code. Thanks.
 
So you'd have an item which was visible in the listbox when the user wasn't doing anything with it, but when they clicked to see the list contained by the listbox, the item wouldn't be one of the items visible, is that what you're saying? CAn you give an example of a program where you've seen the behavious you're trying to replicate?
 
I have a listbox that contains a list of people's email addresses. I programmatically select all entries in the box. Then I loop through the box and send out the emails. After each email is sent I unselect the item. This gives the user the visual affect of seeing the progress of the task. The problem is that when the items are unselected at some point the selected items are no longer viewable because the listbox does not scroll. The program works great, I would just like the user to be able to see each entry as it is unselected.
Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top