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
What is the maximum size of the textbox?
What are the difference between structure and class?
Is vb.net dead?
Explain global assembly cache (gac)?
How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?
Define serialization in .net?
What is the use of errorprovider control?
What are the features of c# which are not present in vb.net?
What is redim keyword?
Name some of the features present in vb 2005?
Explain the use of new keyword?
List the different types of assembly?
How to retrieve images in sql server database through vb.net?
What do you mean by serialization and deserialization?
Can you please explain the difference between authentication and authorization?