Write the steps to create a calculator in visual basic.
Answers
Answered by
2
Answer:
The steps to create a simple calculator in visual basic are:
Step 1) Design the interface
Step 2 ) In the programming page write the following program
For addition
Private subcommand 1_ click()
Text3.text = Val(Text1.text) + Val (Text2.text)
End sub
For substraction
Private subcommand 2_ click()
Text3.text = Val(Text1.text) - Val (Text2.text)
End sub
For multiplication
Private subcommand 3_ click()
Text3.text = Val(Text1.text)* Val (Text2.text)
End sub
For division
Private subcommand 4_ click()
Text3.text = Val(Text1.text)/ Val (Text2.text)
End sub
Step 3) Execute the program
mark as brainliest
Similar questions