Steps to create simple Calculator in VB.Net

  1. In the New Project dialog box, select a language in the Installed Templates box, and then select the Windows Application template.
  2. Type a name for the application in the Name box, and in the Location box, type the path to where you want the application to be created and then click ok.
  3. On the windows form Design window, drag and drop buttons and text-box from the toolbox.
  4. Change the text property of button by right clicking on button to 0,1,2,3, and so on up-to 9.
  5. Now double click on any button to create button click event like below...
 PrivateSub Button1_Click(ByValsender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click
        TextBox1.Text += Button1.Text      \\ changing text-box's text on button click.
    End Sub

6.In same way apply the logic of arithmetic calculation like addition, subtraction etc.
7.Debug your program and you get the resulting output.

Click here to Download Full source code. 

0 Response to "Steps to create simple Calculator in VB.Net"

Post a Comment