How to Make simple Calculator in vb/ visual Basic6.0 Here is the Answer

visual Basic(vb) is the intresting progarmming Language.It is so simple to make a calculatir in visual basic6.0,I am going to show you how to make a simple calculator.You all have to do just follow the instraction given below.

Click on the Picture to View Full size

Calculator cc

Step:Open Vb -Stander.exe-open

Step2:Create Three Labels and Three Textbox

Step3:Create Six Command Buttons

Step4:Coading:::::

Step4:::::::::::Coding on General Decleration

Dim a as integer

Dim b as integer

Step5::::::::::::::::::::::::::::::: Double Click On plus Button

Private Sub Command1_()

a=text1.text

b=text2.text

text3.text=a+b

End sub

Step6::::::::::::::::::::::::::::::Double Click On Minus Button

Private Sub Command2_()

a=text1.text

b=text2.text

text3.text=a-b

End sub

Step7::::::::::::::::::::::::::::::Double Click On Multiply Button

Private Sub Command3_()

a=text1.text

b=text2.text

text3.text=a*b

End sub

Step8::::::::::::::::::::::::::::::Double Click On Divide Button

Private Sub Command4_()

a=text1.text

b=text2.text

text3.text=a/b

End sub

Step9::::::::::::::::::::::::::::::Double Click On Cancle  Button

end

end sub

Step10::::::::::::::::::::::::::::::Double Click On Clear Button

text1.text=” ”

text2.text=” ”

text3.text=” ”

end sub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: