Here's my scenario
I do have many link labels in my form. What I want to happen is, when a user click on that link label, the name of that link label will be passed to a variable.

Recommended Answers

All 3 Replies

add a click-event handler for your linklabels

inside the handler you just do

myConstVariable = ctype(sender, linklabel).Name

Thanks for this one GeekByChoiCe! :)


I have the same kind of problem, but what I need to keep in a variable es the text of the linkedlabel that was clicked, because that I will use to filter a database. I think what you said may do it, but how am I suppouse to add a click-event handler for your linklabels?

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.