.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Visit Web Sites on Click of Links Given in Windows forms

Posted By:Prasanti Prusty       Posted Date: February 28, 2010    Points: 10    Category: Windows Form Controls    URL: http://www.dotnetspark.com  

Visit Web Sites on Click of Links Given in Windows forms
 

Add a LinkLabel and put the Codes in LinkClicked.

So on click of Link it will open the URL in Internet Explore

 

Public Class frmOpenSiteLinks

    Private Sub lnkVisitGoogle_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkVisitGoogle.LinkClicked
        lnkVisitGoogle.LinkVisited = True

        'Go to Windows Forms Websites
        System.Diagnostics.Process.Start("IExplore", "http://www.google.com")
    End Sub

End Class

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend