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
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
