Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Selecting an index in a ListView control

Hi

How do you set the selected index of a ListView control?

The equivalent code for a ListBox in VBA would be
Me.lsbActionR.ListIndex = 10
Avatar of pavaneeshkumar
pavaneeshkumar

use following to set the list index
ListBox1.SelectedListIndex=10

Open in new window

Avatar of Murray Brown

ASKER

Hi I need that for a LIstView, not a listbox
ASKER CERTIFIED SOLUTION
Avatar of pavaneeshkumar
pavaneeshkumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great answer. Thank you