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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Scroll to Bottom of List Box 4

Status
Not open for further replies.

alexbel

Technical User
Jun 27, 2004
77
US
Hi,

I have a list box that displays values from a field in a table. I was wondering how I can make the list box scroll to the very bottom of the list automatically so the user can see the latest values that they have entered?

Thank you!
 
Hello,

I am having the same problem - need to select the first (or any) item in the listbox. I used the

[listbox].selected(0) = true

method, which works. Only problem is, my form freezes up. I can't select anything else, on any control on the form.

Any help would be greatly appreciated.
 
How are ya BananaQuaaludes . . . . .

[blue]Originate a post so all can benefit from what occurs![/blue]

Calvin.gif
See Ya! . . . . . .
 
I had this frustrating problem "7777" ItemIndex setting problem.

I have a bunch of ComboBoxes who's values depend on each other. When one of the ComboBoxes changes, the dependant ComboBoxes should show the first item after ReQuery.

Here is how I solved it.

Private Sub SelectFirstComboItem(ByRef cbo As ComboBox)

SelectedThing = cbo.ItemData(1)
cbo = SelectedThing
End Sub

example calling code:


cboSomeCBO.Requery
SelectFirstComboItem cboSomeCBO


It can be easily changed to do a lot of the things I have seen people trying to do who get that error.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top