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

hey friends, Firstly I pick the records from the database into the DataGridView, Then I want that If I made any changes to the records in the GridView & Click on Update Button, Changes are Reflected into the main Database .Plz do reply back

4 Answers  


What is the difference between Abstract Classes and Interfaces? Give the answer as a table format....

5 Answers  


How a base class method is hidden?

0 Answers  


What is friend and protected-friend access specifier in vb.net?

1 Answers  


What is the significance of delegates?

0 Answers  






i had attended to infosys interview on 17th april 2010...on .net..3+ experience .. to my knowledge i did well in technical and they asked me to wait for next process ..so i waited for 15 min ..later one person came and said give 7-10 days time for intimation of next process do they keep technical and hr on different day ...or i loose the interview ..am confused yaar what accuatly would be happend

2 Answers  


What is the main use of a namespace?

0 Answers  


hello! I am developing software in vb6 and vb.net separately which i need to generate barcodes e.g i have a string "182346-u",so the problem is that how to generate barcode from this type of string can any body help me please thanks regard !

2 Answers  


How do you validate Date by using which validation Control?

4 Answers   HCL, iQuest,


Why is the xml infoset specification different from the xml dom?

0 Answers  


How do you rate yourself in .NET ?

3 Answers   Infosys, Seneca Global,


how to call a list box on the text if some one send me the code for it

1 Answers  


Categories