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

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Open and Use Calculator in Windows Application

Posted By:Prasanti Prusty       Posted Date: February 28, 2010    Points: 10    Category: Windows Form Controls    URL: http://www.dotnetspark.com  

Open and Use Calculator in Windows Application

'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


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