Hi
This code successfully outputs the column data of the selected row I click on in my listview
However when I click on another row I get an errror saying 0 is an invalid index?
It works perfect on every row as long as I click on that row first, after that I get the error
Any ideas?
Thanks
This code successfully outputs the column data of the selected row I click on in my listview
However when I click on another row I get an errror saying 0 is an invalid index?
It works perfect on every row as long as I click on that row first, after that I get the error
VB.NET:
[SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] SelItems [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] ListView.SelectedListViewItemCollection = [/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].lstTransactions.SelectedItems
MessageBox.Show(SelItems(0).SubItems(0).Text & [/SIZE][SIZE=2][COLOR=#800000]" "[/COLOR][/SIZE][SIZE=2] & _
SelItems(0).SubItems(1).Text & [/SIZE][SIZE=2][COLOR=#800000]" "[/COLOR][/SIZE][SIZE=2] & _
SelItems(0).SubItems(2).Text & [/SIZE][SIZE=2][COLOR=#800000]" "[/COLOR][/SIZE][SIZE=2] & _
SelItems(0).SubItems(3).Text & [/SIZE][SIZE=2][COLOR=#800000]" "[/COLOR][/SIZE][SIZE=2] & _
SelItems(0).SubItems(4).Text)
[/SIZE]
Any ideas?
Thanks