TutorialKie VB - Program 2 [ Addition Calculator ]

Posts 1–3 of 3 · Page 1 of 1
TutorialKie VB - Program 2 [ Addition Calculator ]
Hello guys !

This is the second program I've learned ..

An Addition Calculator

Let's start

=============================

Difficulty : Easy
Duration : 1-2 minutes
For today your gonna make an Addition Calculator

Screen Shot :


=============================

Instructions :

1. Create a new project..
2. Name it Addition Calculator..
3. On Form1's properties .. find "TEXT" and beside it it has a text box .. name it Addition Calculator ..
4. Add 3 labels , 2 text boxes,and 1 button ...

=============================

Renaming the Functions we used .. ( labels, text boxes , button )

Label 1 = Label 1
Label 2 = "=" ( without the " )
Label 3 = +
Button1 = Calculate

=============================

Code ..

Button1

Code:
num1 = TextBox1.Text

        num2 = TextBox2.Text

        product = num1 + num2

        Label1.Text = product
=============================

Now were done try debugging it

Have fun !
Didn't you forgot
Code:
Dim num1 as integer
Dim num2 as integer
Dim product as integer
Or it wont work
Well you can add it
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us