This question is locked. New answers and comments are not allowed.
Hello,
how can I get the Index of a RadListBoxItem in a RadListBox?
My current code:
how can I get the Index of a RadListBoxItem in a RadListBox?
My current code:
Dim myItem As New RadListBoxItem |
AddHandler myItem.Click, AddressOf Me.ListBoxClick |
Me.RadListBox1.Items.Add(myItem) |
Private Sub ListBoxClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) |
Dim myItem As RadListBoxItem = sender |
Dim myIndex As Integer = ??? <---- How can I get the index? |
Me.RadListBox1.SetSelected(myIndex, True) |
End Sub |