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 pre-jit?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
What is the differnce between managed code and unmanaged code?
Explain the use of serialization and deserialization?
What is the difference between manifest and metadata?
What is the use of system.diagnostics.process class?
What are the differences between c# and visual basic.net?
write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.
How vb implements the disconnected architecture as like vb.net?
Describe about visual basic.net?
how to get dynamic control array position or its index position?
What is deep copy?
Explain jagged array in vb.net?
Explain about visual basic.net?
What is a preprocessor directive in vb.net?