C# Windows Form:
How to Create a new Project:
Go to Start menu
Click the red signal and then Click create new Project:
Select Visual C# then windows then click OK
Now you will see this
You will go left side of your visual studio. There you will see toolbox. There contain several kinds of control. We will be worked Button control, Label Control and TextBox Control.
You should take 3 Textbox, 3 Label and 4 Buttons. When you will take control then a default name will be generated of control. You can change the name from Properties.
1st Textbox for first number, 2nd Textbox for Second number and 3 rd Textbox for result.
1st Button for Addition, 2nd Button for Subtraction, 3rd for Multiplication and 4th for Divission.
When you click Add button Result will be shown Addition result. Similarly next button will work their command.
Individually double click on button
Now you can run press F5 and test your application.
Result of Addition:
Result of Subtraction:
Result for Multiplication:
Result for Division:
Now you try.












No comments:
Post a Comment