document3
TRANSCRIPT
Electro-TeamInteresting Education
Visual Basic 2010Develop Simple Calculator
Command Cal
Select Button1 and change it's text property to +
Chang text property for the rest of Buttons to - ,x,/
Select all Buttons
Change Font property
Run Time
There is something wrong here as you can see
Select all Buttons and change AutoSize property to True
Chang Font property of TextBox1, TextBox2 & Label1
Run your program from tool bar or you can press F5
Run Time
Neglect equal button for following code
From toolbar you can end your program by pressing close button
Double click on + button and type yellow phrase between Private Sub and End Sub
Run Time
Enter data in txt1 and txt2 then press + button result will be in label1.text
Modify your code
Run Time
Enter data in txt1 and txt2 then press + button result will be in label1.text
Subtraction and Division will have the same code
Now we will use equal button
User enter data and select operation then press equal button
Delete textbox2 User enter 1st number then select operation then enter 2nd number
Press equal button … Label1.Text = result
End Of Part 2
Produced by
Electro-Team