Clickingor hitting enter on item in list box doesn’t perform action

125 pts.
Tags:
Code
ListBox
Visual Basic 2008
Visual Basic List Box
I use Visual Basic 2008. I have a list box that is populated by inner and outer html from any given page i go to. i would like to click on the id in the list box that has the inner or outer html and perform that action. I have figured out how to call on the id in the list and perform this action by adding a button and just coding it to call on a pacific id in the listbox and perform the click. However, I would like just 1 buttom to call and perform this action. I've noticed you cant click or hit enter on the item in the list and have it perform the action. I guess what i'm getting at is that i dont want to set up 50+ buttons calling on each id listed in my listbox. I just want to be able to click on the item in the list box or have 1 button set so i can click an item in the list box which will highlight that item then hit the button that will then perform the action of the selected item in my list box. Does anyone have an example code that i could learn from or can tell me if i can even perform this. thanks.
ASKED: December 8, 2008  6:31 PM
UPDATED: December 8, 2008  7:21 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following