Hi All,
How to select the values in Listbox dynamically ?
my code is like :
Dim temp As String = "Mysore , Bangalore , Mandya ,"
Dim temporary As String() = temp.Split(","c)
Dim length As Integer = temporary.Count()
For I As Integer = 0 To length - 1
MessageBox.Show(temporary(I))
ListBox1.Items(temporary(I)).Selected = True // i am getting error here
Next
Reagrds,
Harish