Sc0pe Posted November 10, 2004 Posted November 10, 2004 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) Quote
FlyBoy Posted November 10, 2004 Posted November 10, 2004 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.... Quote
Sc0pe Posted November 11, 2004 Author Posted November 11, 2004 look for it in the listbox events.... Yeah, I've tried that...care to explain a little more? Quote
Administrators PlausiblyDamp Posted November 11, 2004 Administrators Posted November 11, 2004 (edited) Are you talking about an ASP.Net or a windows application? Okay, moved to the correct forum now. Edited November 11, 2004 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Sc0pe Posted November 11, 2004 Author Posted November 11, 2004 Are you talking about an ASP.Net or a windows application? Windows Application Quote
*Experts* DiverDan Posted November 11, 2004 *Experts* Posted November 11, 2004 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 Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Sc0pe Posted November 12, 2004 Author Posted November 12, 2004 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.