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

Name the tool which can convert visual basic old version to .net compatibility version?

585


Can you please explain the difference between vb and vb.net?

519


Explain the difference between c# and vb.net?

615


What is DLL HELL in VB.NET

664


What is the use of internal keyword?

635






What is break mode? What are the options to step through code?

602


What is stack used for in vb. Net?

587


What are the different types of Lock available in Visual Basic?

696


How does vb.net achieve polymorphism?

593


How do you retrieve the customized properties of a .net application from xml .config file?

572


write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.

1236


Explain the advantages of vb.net?

579


What are the different variables in vb.net?

575


How many languages are supported by .net?

604


What are the types of generations in garbage collector?

592