[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 910
  • Last Modified:

VB 2005 ListView Selected Items Index

Hi
In VB 2005 how do you find the selected index of the row selected
Thanks
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
Assuming you control's MultiSelect property is set to False,

the selected item is:
yourControl.SelectedIndices(0)

but first you have to check this:
If yourControl.SelectedIndices.Count > 0
to avoid an exception
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now