|
|
Title | Launch the system's default browser in VB .NET |
Description | This example shows how to launch the system's default browser in VB .NET. |
Keywords | browser, default browser, launch program, start program |
Categories | Software 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
|
|
|
|
|
|