Hi guys,how are you? =)
i have a doubt,with ListBox =/
i want to get the selected item the user clicks and then put in another listbox,but it´s not happening,it says 'cannot be indexed because it has no default property'
is there an easy way to solve it?
my code is below:
Protected Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
If (ListBox1.SelectedItem(1)) Then
ListBox2.Items(0).Value = "Click 1X"
ListBox2.Items(1).Value = "Click 2X"
ListBox2.Items(2).Value = "Click 3X"
ListBox2.Items(3).Value = "Search + Click 1X"
ListBox2.Items(4).Value = "Search + Click 2X"
End If
end Sub
thanks!