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

moving thru list items in a list (up or down) with a command button

Status
Not open for further replies.

Novice

Programmer
Oct 18, 1999
1
CA
I am trying to write code that with a click of a button, i can move either up/down from a selected item in that list. Can anyone one help me out on this one? I have only been programming with VB 6.0 for 2 weeks and have no previous programming experience.
 
Use the ListIndex property of the listbox, and when you want to move up the list decrement this value and when you want to move down the list incremenet the value. You may have to use doevents afterwards but I can't rememeber.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top