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


Please Help Members By Posting Answers For Below Questions

What is the maximum size of the textbox?

610


What are the difference between structure and class?

646


Is vb.net dead?

611


Explain global assembly cache (gac)?

801


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

681






Define serialization in .net?

714


What is the use of errorprovider control?

665


What are the features of c# which are not present in vb.net?

725


What is redim keyword?

654


Name some of the features present in vb 2005?

647


Explain the use of new keyword?

634


List the different types of assembly?

621


How to retrieve images in sql server database through vb.net?

601


What do you mean by serialization and deserialization?

617


Can you please explain the difference between authentication and authorization?

617