document3

30
[email protected] Electro-Team Interesting Education

Upload: it-big-dig

Post on 17-Aug-2015

45 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Document3

[email protected]

Electro-TeamInteresting Education

Page 2: Document3

Visual Basic 2010Develop Simple Calculator

Command Cal

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

Select Button1 and change it's text property to +

Page 9: Document3

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

Page 10: Document3

Select all Buttons

Page 11: Document3

Change Font property

Page 12: Document3

Run Time

Page 13: Document3

There is something wrong here as you can see

Page 14: Document3

Select all Buttons and change AutoSize property to True

Page 15: Document3

Chang Font property of TextBox1, TextBox2 & Label1

Page 16: Document3

Run your program from tool bar or you can press F5

Page 17: Document3

Run Time

Neglect equal button for following code

Page 18: Document3

From toolbar you can end your program by pressing close button

Page 19: Document3

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

Page 20: Document3

Run Time

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

Page 21: Document3

Modify your code

Page 22: Document3

Run Time

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

Page 23: Document3
Page 24: Document3
Page 25: Document3

Subtraction and Division will have the same code

Page 26: Document3

Now we will use equal button

User enter data and select operation then press equal button

Page 27: Document3

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

Press equal button … Label1.Text = result

Page 28: Document3
Page 29: Document3
Page 30: Document3

End Of Part 2

Produced by

Electro-Team