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

Combo Box Help

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do you make it so when you add an item to a combo box, it automatically scrolls down. Or if you cant do that, how do you make it so it adds it to the top.
 
Well, this doesn't drop the combo list, but it does select the last item in the list.

Combo1.ListIndex = Combo1.ListCount - 1
:cool:



David Paulson


 
If you want to add the items to the top of the list, just tell the listbox the index you want the item added. For example:

List1.AddItem "One", 0
List1.AddItem "Two", 0
List1.AddItem "Three", 0

The listbox will contain the following

Three
Two
One

in that order. Be sure you don't have sorting on for the listbox or this won't be of any help. Snaggs
tribesaddict@swbell.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top