hi,everyone. i got a problem in handling linklabels. i've
more than one linklabels in a form. i used following event
handler to handle the event 'LinkClicked' of Linklabel.
private sub LinkLabel1_LinkClicked() Handles
LinkLabel1.LinkClicked,LinkLabel2.LinkClicked
...............
..........
end sub
My question is how to identify the 'Linklabel1'
and 'Linklabel2'.
i dont want to handle the events of linklabels individually.
Answer Posted / dinesh
Private Sub LinkLabel_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Handles
LinkLabel1.LinkClicked,LinkLabel2.LinkClicked
dim strName as string=sender.name
end sub.
Now the strname contains the name of linklabel clicked.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is vb.net a programming language?
Described strong typing and weak typing?
When do you use virutal keyword?
What are the different types of applications supported in .net (or) .net framework?
What are the different variables in vb.net?
What is the purpose of an Assembly?
Name the class which allows an element to be accessed using unique key?
How does vb.net achieve polymorphism?
Tell me how many .net languages can a single .net dll contain?
source code for how to login a vb.net application ?
Tell me which namespace are used for accessing the data?
What are the objects in asp.net?
Explain about the ruby interface generator?
Explain global assembly cache (gac)?
What is break mode? What are the options to step through code?