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

Listbox item

Status
Not open for further replies.

Cwolf

Technical User
Sep 16, 2002
1
0
0
US
How do I set the focus on a item of a listbox??

For example I have a command button and a listbox with 5 items.How doe I select the second item if I pres the button


Plaese help me
 
You can do it like this way

List1.ListIndex = item data (number)

If your list item data started from 0 to 4 then

List1.ListIndex = 1


I test it and it’s worked
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top