Below is the procedure to create the simple addition program in C# using windows forms:
1)Open Visual Studio and You will get the screen like below.Click on
2)Then you will get the below screen.
Go to Visual C# tab as highlighted above and select windows forms
Application.
3)Now you will get the development environment like below.
4)Build the form now, as shown below.
Go to Tool Box.Use Label, Text box and button and build the above form.
Once you complete,It should look like below.
5) Now double click on button called Calculate,you will get the code like
as below.
6)Then Write the code in button1_Click(Object sender,EventArgs e) method as
highlighted in below screenshot.
7)Now Save the project and run as shown below.
8)You will get the below window after execution.
Enter number1 and number2 and press the calculate button. Now you will get the sum.
No comments:
Post a Comment