?
Solved

Easy! - LinkLabel

Posted on 2005-05-17
4
Medium Priority
?
233 Views
Last Modified: 2010-04-23
Hi All,

Thanks for clicking

Feel an idiot asking this, but I guess if the cap fits!!

How do you get a LinkLabel to take you to the webpage when you click it. Can't see where to define the URL??

Thanks
Pat
0
Comment
Question by:PatKearney
  • 2
4 Comments
 

Accepted Solution

by:
Choy_2l earned 150 total points
ID: 14017446
'this is the LinkLabel coding

    Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, _
    ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
    Handles LinkLabel1.LinkClicked

        Process.Start("http://yahoo.com")

    End Sub
0
 

Author Comment

by:PatKearney
ID: 14017480
Simple as that then eh!!

The cap fits!!!!

Thanks Choy
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 14017481
if the label is dynamic use

 Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, _
    ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
    Handles LinkLabel1.LinkClicked

      Dim target As String = CType(e.Link.LinkData, String)
     Process.Start(target)
    End Sub
       
0
 

Author Comment

by:PatKearney
ID: 14017641
Thanks Ronald,

It's not, but thanks for just checking. Good to know for the future though!!

Thank you!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question