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

how to send data to exe file? my code has a button when i press it, an exe file will open. how can i send data as input to the exe file?

2 Answers  


what is common type system?

0 Answers  


What is the differences between dataset.clone and dataset.copy?

0 Answers  


Explain jit?

0 Answers  


List the different types of assembly?

0 Answers  






Define clr?

0 Answers  


is ADO.NET important to connect sql server? is any other way to connect sql server?

1 Answers  


thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net

0 Answers  


What would you do to remove microsoft visual basic name space?

0 Answers  


what is vb,net

1 Answers   ME,


Explain about visual basic.net?

0 Answers  


What does assert() method do In VB.NET

0 Answers   MCN Solutions,


Categories