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!

List Box Question 1

Status
Not open for further replies.

jaa69

Programmer
Nov 12, 2001
85
US
I have a list box using an Array as my source. This Array will change frequetly. I want to insure when I show the list box on the screen that it always goes to the first element in the list box. If I scroll dfown like 100 items, then exit the screen, if I re-enter that screen it will show the same item highlighted even though I re create the Array. I wnt it always to go to the first element. Any Ideas.

Thanks Ahead of time

 
Banswara,

That seemed to have solved the problem. I placed it in the show event of the form since I only want it to go to the top the first time. But that is what I needed thank you,

 
Try this

Thisform.list1.ListItemId=1


if you have a click event you should add the following...
Thisform.list1.click


this will hightlight the first item to be selected.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top