Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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....

 

 

ListBox4.Items.Item(9)

Posted
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....

 

 

ListBox4.Items.Item(9)

 

look for it in the listbox events....

  • *Experts*
Posted

Are you looking for something like this?

 

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

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted
Are you looking for something like this?

 

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

 

 

Thanks, that worked great. :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...