Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleLaunch the system's default browser in VB .NET
DescriptionThis example shows how to launch the system's default browser in VB .NET.
Keywordsbrowser, default browser, launch program, start program
CategoriesSoftware Engineering, VB.NET
 
This program displays a LinkLabel control that stores a URL in the its Tag property. When you click the control's link area, the program uses the System.Diagnostics.Process.Start command to "start" the URL. The system launches the default application associated with the URL, which should be the system's default browser.
 
Private Sub lnkPage_LinkClicked(ByVal sender As _
    System.Object, ByVal e As _
    System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
    Handles lnkSearchPage.LinkClicked, _
    lnkHomePage.LinkClicked, lnkIndexPage.LinkClicked
    Dim lnk As LinkLabel = DirectCast(sender, LinkLabel)
    System.Diagnostics.Process.Start(lnk.Tag)
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated