As you know by question that what I want. I was using listbox. In ListBox we can get selected item by a simple line of code: listbox1.SelectedItem. Now I am using ListView, how I get the SelectedItem or SelectedIndex of ListView.
ListBox
listbox1.SelectedItem
ListView
SelectedItem
SelectedIndex
Here's the answer that I found for my question:
urlList1.FocusedItem.Index
And I am getting selected item value by:
urlList1.Items(urlList1.FocusedItem.Index).SubItems(0).Text
2.1m questions
2.1m answers
60 comments
57.0k users