|
-
Jan 13th, 2006, 06:40 PM
#1
Thread Starter
Addicted Member
ListView SelectedIndexChanged event..
Hi Frineds,
I have tiny problem in my VB.NET application.
I want selected Item Index No. in SelectedIndexChanged event.
code is herebelow:
------------
Private Sub lstvw_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstvwGO.SelectedIndexChanged
MsgBox(lstvwGO.Items.IndexOf(lstvwGO.SelectedItems.Item(0)))
End Sub
------------------
I get value ONCE, but after I get error
---------
Specified argument was out of the range of valid values.
---------
well, there are goo enough data in ListView on which I am clicking..
what could be the prob..
thanks a lot,
-nanc
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|