DISEÑE UN PROGRAMA QUE NOS PERMITA CALCULAR LAS CUATRO OPERACIONES BASICAS

Title.

 

 

 

 

 



 

Private Sub Command6_Click()
End
End Sub

Private Sub dividir_Click()
resultado.Text = Val(valor1.Text) / Val(valor2.Text)
Image4.Visible = True
Image1.Visible = False
Image2.Visible = False
Image3.Visible = False
End Sub

Private Sub multiplicar_Click()
resultado.Text = Val(valor1.Text) * Val(valor2.Text)
Image3.Visible = True
Image1.Visible = False
Image2.Visible = False
Image4.Visible = False
End Sub

Private Sub repetir_Click()
valor1.Text = ""
valor2.Text = ""
resultado.Text = ""
Image3.Visible = False
Image1.Visible = False
Image2.Visible = False
Image4.Visible = False
valor1.SetFocus
End Sub

Private Sub restar_Click()
resultado.Text = Val(valor1.Text) - Val(valor2.Text)
Image2.Visible = True
Image1.Visible = False
Image4.Visible = False
Image3.Visible = False
End Sub

Private Sub sumar_Click()
resultado.Text = Val(valor1.Text) + Val(valor2.Text)
Image1.Visible = True
Image4.Visible = False
Image2.Visible = False
Image3.Visible = False
End Sub








PAGINA PRINCIPAL