Sc0pe said:I'm wondering how you have an action in a listbox item. When you click the item in the listbox it does something...
What I have so far....
Visual Basic:ListBox4.Items.Item(9)
FlyBoy said:look for it in the listbox events....
PlausiblyDamp said:Are you talking about an ASP.Net or a windows application?
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
If ListBox1.SelectedItem = "actionItem" Then
'blah
End If
End Sub
DiverDan said:Are you looking for something like this?
Visual Basic:Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged If ListBox1.SelectedItem = "actionItem" Then 'blah End If End Sub
or you can use its selected index integer value