Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 909
  • 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 OlivaresCommented:
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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