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 / 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 |
What is DLL hell?
What are the different types of applications supported in .net (or) .net framework?
What is "Friend" in VB.Net?
What is the top .net class that everything is derived from?
Can you please explain the difference between thread and process?
Explain option strict?
What is the DIfference between Friend and Protected Friend?
6 Answers CTS, Sykes Enterprises, TCS,
Explain the services provided by common language infrastructure.
is it possible to use flexgrid in vb dotnet?
9 Answers Banking, Microsoft, NetBIOS,
Define clr?
What are the assembly entry points?
What is the difference between readonly variable and constant variable?