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

Which namespace are used for accessing the data?

0 Answers  


What is the feature anonymous type?

0 Answers  


Name a feature which is common to all .net languages?

0 Answers  


Write program in VB.Net with SQL Server and Crystal Reports to develop a small windows application to add,edit,save, search and print Employee Information and send sourcecode as zip file. empcode : .............. empname : .............. dateofjoin : dd/mm/yyyy dateofbirth : dd/mm/yyyy TableName: EmpMaster EmpCode EmpName DOB DOJ TableName: EmpDocs EmpCode DocNo DocName ExpDate

0 Answers   TCS,


How to view an assembly?

0 Answers  






Explain the use of console application?

0 Answers  


Define cls?

0 Answers  


Can you please explain the difference between value and reference types?

0 Answers  


What is branching logic control in VB.NET?

0 Answers  


What keyword is used to accept a variable number of parameter in a method?

0 Answers  


Can we use Vb.Net and C# language simultaneously in one .Net application?

0 Answers   PUCIT,


What is the Difference between Overriding and overloading?

31 Answers   Subex, TCS,


Categories