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

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT

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:


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