VB.NET:
Dim strtemp As String = list2.GetItemText(list1.FindStringExact(surl)).ToString
I want to get the text of an item in list2 at the index of where surl was found in list1. The above code doesn't seem to be working. Any ideas?
Dim strtemp As String = list2.GetItemText(list1.FindStringExact(surl)).ToString
Dim Temp as string = convert.tostring(list2.item(sur1.selectedindex))
Dim temp As String
Dim inttemp As Integer
list1.SetSelected(Convert.ToInt32(list1.FindStringExact(surl)), True)
inttemp = Convert.ToInt32(list1.SelectedIndex())
list2.SetSelected(inttemp, True)
temp = list2.GetItemText(list2.SelectedItem).ToString
list1.SetSelected(Convert.ToInt32(list1.FindStringExact(surl)), True)