Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coding a click event for LinkLabel

Status
Not open for further replies.

Ragnarox

Programmer
Oct 2, 2003
141
US
Hello all,

I have a number of linklabels in my program and in certain instances I would like to have them run, without the user having to actualyy click on the link. Buttons have the PerformClick event that you can call in code, but i have not found anything like that for a linklabel. Is there a way to get that done, or am I going to have to pull the code out of each linklabel, put it into a seperate sub and then call that sub from both places?

Any help, as always, is greatly appreciated.

Brian
 
Rick,

How would i raise that event in my code? I have tried a number of different ways to call the sub, but i can not figure out exactly how to send through the sender and e poriotns of the arguement list that it is requiring.

Any help, as always, is greatly appreciated.

Brian
 
Its start the site in de linlabel

Private Sub lblWebsite_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lblWebsite.LinkClicked
System.Diagnostics.Process.Start(lblWebsite.Text)
End Sub


Eric De Decker
Visit The Belgium "Visual Basic Group" at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top