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
What is the difference between convert.tostring and i.tostring method?
Explain how to achieve polymorphism in vb.net?
what is diffrence constructor and destructor in vb
What do you mean by deserialization?
What is public assembly?
How can we remove handlers at run time?
What is the difference between system.applicationexception class and system.systemexception?
Explain namespace?
How to retrieve images in sql server database through vb.net?
Explain jit?
What is meant by jagged arrays?
Name the two main parts of .net?
What are the differences between vb.net and c#, related to oops concepts
Which properties are used to bind a DataGridView control?
How to achieve Polymorphism in VB.Net?