- In the New Project dialog box, select a language in the Installed Templates box, and then select the Windows Application template.
- 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.
- On the windows form Design window, drag and drop buttons and text-box from the toolbox.
- Change the text property of button by right clicking on button to 0,1,2,3, and so on up-to 9.
- 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
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