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
Name the tool which can convert visual basic old version to .net compatibility version?
Can you please explain the difference between vb and vb.net?
Explain the difference between c# and vb.net?
What is DLL HELL in VB.NET
What is the use of internal keyword?
What is break mode? What are the options to step through code?
What is stack used for in vb. Net?
What are the different types of Lock available in Visual Basic?
How does vb.net achieve polymorphism?
How do you retrieve the customized properties of a .net application from xml .config file?
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.
Explain the advantages of vb.net?
What are the different variables in vb.net?
How many languages are supported by .net?
What are the types of generations in garbage collector?