B
Beebs
Why would this line of code throw a NullReferenceException if the
first item of my listview is clearly highlighted (selected)
If lstContainers.FocusedItem.Index = 0 Then
I know lists in VB are zero based, yet for some reason, an exception
is thrown. Is this some type of weird bug cause it sure doesn't make
sense to me? All I want to do is get the item's index in the listview
that is currently selected.
Thanks
first item of my listview is clearly highlighted (selected)
If lstContainers.FocusedItem.Index = 0 Then
I know lists in VB are zero based, yet for some reason, an exception
is thrown. Is this some type of weird bug cause it sure doesn't make
sense to me? All I want to do is get the item's index in the listview
that is currently selected.
Thanks