Professional Documents
Culture Documents
Text1.Text = resultado
Case "COSENO"
resultado = a / 155000005
Text1.Text = resultado
End Select
End Sub
Private Sub Command16_Click()
a = Text1.Text
Text1.Text = ""
OP = "SUMA"
End Sub
Private Sub Command17_Click()
a = Text1.Text
Text1.Text = ""
OP = "RESTA"
End Sub
Private Sub Command18_Click()
a = Text1.Text
Text1.Text = ""
OP = "MULTIPLICACION"
End Sub
Private Sub Command19_Click()
a = Text1.Text
Text1.Text = ""
OP = "DIVISION"
End Sub
Private Sub Command2_Click()
Command1.Visible = True
Command2.Visible = False
Command23.Visible = False
Command4.Visible = False
Command5.Visible = False
Command6.Visible = False
Command7.Visible = False
Command8.Visible = False
Command9.Visible = False
Command10.Visible = False
Command11.Visible = False
Command12.Visible = False
Command13.Visible = False
Command14.Visible = False
Command15.Visible = False
Command16.Visible = False
Command17.Visible = False
Command18.Visible = False
Command19.Visible = False
Command20.Visible = False
Command22.Visible = False
Command26.Visible = False
Command24.Visible = False
Command25.Visible = False
Command28.Visible = False
Command29.Visible = False
Command30.Visible = False
Command33.Visible = False
Command34.Visible = False
Command31.Visible = False
Command32.Visible = False
Command27.Visible = False
Text1.Visible = False
End Sub
Private Sub Command20_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + "3.14"
c = False
End Sub
Private Sub Command21_Click()
End
End Sub
Private Sub Command22_Click()
a = Text1.Text
Text1.Text = ""
OP = "SENO"
End Sub
Private Sub Command23_Click()
a = Text1.Text
Text1.Text = ""
OP = "COSENO"
End Sub
Private Sub Command24_Click()
a = Text1.Text
Text1.Text = ""
OP = "X/X"
End Sub
Private Sub Command25_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + ")"
c = False
End Sub
Private Sub Command26_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + "("
c = False
End Sub
Private Sub Command27_Click()
a = Text1.Text
Text1.Text = ""
OP = "TANTO X CIENTO"
End Sub
End If
Text1.Text = Text1.Text + "1"
c = False
End Sub
Private Sub Command6_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + "2"
c = False
End Sub
Private Sub Command7_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + "3"
c = False
End Sub
Private Sub Command8_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + "4"
c = False
End Sub
Private Sub Command9_Click()
If c = True Then
Text1.Text = ""
End If
Text1.Text = Text1.Text + "5"
c = False
End Sub
a = Text1.Text
Text1.Text = ""
OP = "RESTA"
End Sub
Private Sub msum_Click(Index As Integer)
End
End Sub
Private Sub msuma_Click(Index As Integer)
a = Text1.Text
Text1.Text = ""
OP = "SUMA"
End Sub