Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between convert.tostring and i.tostring method?

1037


Explain how to achieve polymorphism in vb.net?

984


what is diffrence constructor and destructor in vb

1028


What do you mean by deserialization?

1025


What is public assembly?

1034


How can we remove handlers at run time?

1104


What is the difference between system.applicationexception class and system.systemexception?

1185


Explain namespace?

1211


How to retrieve images in sql server database through vb.net?

1022


Explain jit?

1193


What is meant by jagged arrays?

1122


Name the two main parts of .net?

997


What are the differences between vb.net and c#, related to oops concepts

1035


Which properties are used to bind a DataGridView control?

1202


How to achieve Polymorphism in VB.Net?

1120