Open and Use Calculator in Windows Application

Posted by Chikul under Windows Forms category on | Views : 3603
'Open and Use Calculator in Windows Application

Public Class frmUseCalculator

Public Sub New()

' This call is required by the Windows Form Designer.

' 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
End Sub

End Class

Comments or Responses

Login to post response