Operaciones basicas visual studio
Private Sub Command1_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub Command2_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command3_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub Command4_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text1.SetFocus
End Sub
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub Command2_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command3_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub Command4_Click()
Text1.Text = Val(Text1.Text)
Text2.Text = Val(Text2.Text)
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text1.SetFocus
End Sub