By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,871 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,871 IT Pros & Developers. It's quick & easy.

Getting selected item from listview

P: n/a
It works on the first selection when I want to get a different selection I get
InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index
The Following is the code

Private Sub ListView1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ListView1.SelectedIndexChanged
Dim SELECTEditems As ListView.SelectedListViewItemCollection =
CType(sender, ListView).SelectedItems

Dim STRCHKNUM As String
STRCHKNUM = SELECTEditems(0).SubItems(0).Text

Mar 27 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.