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.



hi,everyone. i got a problem in handling linklabels. i've more than one linklabels in a form...

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

Post New Answer

More VB.NET Interview Questions

What is DLL hell?

2 Answers  


What are the different types of applications supported in .net (or) .net framework?

0 Answers  


What is "Friend" in VB.Net?

5 Answers  


What is the top .net class that everything is derived from?

0 Answers  


Can you please explain the difference between thread and process?

0 Answers  






Explain option strict?

0 Answers  


What is the DIfference between Friend and Protected Friend?

6 Answers   CTS, Sykes Enterprises, TCS,


Explain the services provided by common language infrastructure.

0 Answers  


is it possible to use flexgrid in vb dotnet?

9 Answers   Banking, Microsoft, NetBIOS,


Define clr?

0 Answers  


What are the assembly entry points?

0 Answers  


What is the difference between readonly variable and constant variable?

0 Answers  


Categories