3

30
[email protected] Electro-Team Interesting Education

Transcript of 3

Page 1: 3

[email protected]

Electro-TeamInteresting Education

Page 2: 3

Visual Basic 2010Develop Simple Calculator

Command Cal

Page 3: 3
Page 4: 3
Page 5: 3
Page 6: 3
Page 7: 3
Page 8: 3

Select Button1 and change it's text property to +

Page 9: 3

Chang text property for the rest of Buttons to - ,x,/

Page 10: 3

Select all Buttons

Page 11: 3

Change Font property

Page 12: 3

Run Time

Page 13: 3

There is something wrong here as you can see

Page 14: 3

Select all Buttons and change AutoSize property to True

Page 15: 3

Chang Font property of TextBox1, TextBox2 & Label1

Page 16: 3

Run your program from tool bar or you can press F5

Page 17: 3

Run Time

Neglect equal button for following code

Page 18: 3

From toolbar you can end your program by pressing close button

Page 19: 3

Double click on + button and type yellow phrase between Private Sub and End Sub

Page 20: 3

Run Time

Enter data in txt1 and txt2 then press + button result will be in label1.text

Page 21: 3

Modify your code

Page 22: 3

Run Time

Enter data in txt1 and txt2 then press + button result will be in label1.text

Page 23: 3
Page 24: 3
Page 25: 3

Subtraction and Division will have the same code

Page 26: 3

Now we will use equal button

User enter data and select operation then press equal button

Page 27: 3

Delete textbox2 User enter 1st number then select operation then enter 2nd number

Press equal button … Label1.Text = result

Page 28: 3
Page 29: 3
Page 30: 3

End Of Part 2

Produced by

Electro-Team