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

adding items to list box and use vb scroll 1

Status
Not open for further replies.

grieshm

Technical User
Aug 2, 2001
7
0
0
US
how do you list items in the list box and utilize the vb scroll tool. thanks
 
If i understand right, you want to use a scroll bar select list box entries (am I right?)...

You may use this simple code but if i'm wrong you may explain more detailed...

First set scroll bar's Min to 0.
Then add this line below to your list1.additem line(s)..

Code:
Vscroll1.Max = List1.ListCount - 1

And then put this line in the scroll's both Click and Change events...
Code:
List1.Listindex = Vscroll1.Value

I'll be happy if it works...
If i'm wrong, explain better and i'll try to help again.

Byes...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top