I am using the following code:
VB Code:
Dim lv As LiveViewItem Label1.Text = lv.SubItems(2).Text
Now I want to put the contents of the 3rd field on ListView1 into Label1, but this doesn't work, so how would I go around doing this?
Cheers. :)
Printable View
I am using the following code:
VB Code:
Dim lv As LiveViewItem Label1.Text = lv.SubItems(2).Text
Now I want to put the contents of the 3rd field on ListView1 into Label1, but this doesn't work, so how would I go around doing this?
Cheers. :)
i assume that the property of the listview FullRowSelect is set to true, so it look like this.
VB Code:
Dim lv As ListViewItem = ListView1.SelectedItems(0) TextBox1.Text = lv.SubItems(2).Text ' or could be a label control here