'Open and Use Calculator in Windows Application
Public Class frmUseCalculator
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
'Add a Link for Calculator for the LinkLabel
lnkCalculator.Links.Add(0, "Launch Calculator".Length, "calc.exe")
'Autosizr the control based on its contents
lnkCalculator.AutoSize = True
End Sub
Private Sub lnkCalculator_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkCalculator.LinkClicked
'Launch the program stored in the Hyperlink
System.Diagnostics.Process.Start(e.Link.LinkData.ToString())
End Sub
End Class