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 Posted / 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 View All Answers
Explain the differences between vb.net and c#, related to oops concepts?
What is writeline in vb.net?
Which is the tool which can convert visual basic old version to .net compatibility version?
What is jagged array in vb.net?
What are option strict and option explicit?
What is a stream in vb.net?
Define clr?
What is strong typing and weak typing?
Explain and brief about rapid application development tool?
I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com
What is datatype conversion?
What is the maximum size of the textbox?
Explain the difference between value and reference types?
What is the difference between compiler and interpreter?
Name some of the keywords used in vb.net?