Private Sub cmdcosG_Click()
Text3.Text = Cos(Val(Text1.Text)) * 3.14 / 180
End Sub
Private Sub cmdcosR_Click()
Text3.Text = Cos(Val(Text1.Text))
End Sub
Private Sub cmdctgG_Click()
If Val(Text1.Text) = 0 Then
Text3.Text = "ÍÅ ÑÓÙÅÑÒÂÓÅÒ!!!"
Else
Text3.Text = (Tan(Val(Text1.Text))) ^ (-1) * 3.14 / 180
End If
End Sub
Private Sub cmdctgR_Click()
If Val(Text1.Text) = 0 Then
Text3.Text = "ÍÅ ÑÓÙÅÑÒÂÓÅÒ!!!"
Else
Text3.Text = (Tan(Val(Text1.Text))) ^ (-1)
End If
End Sub
Private Sub CmdDecHex_Click(Index As Integer)
TxtHex.Text = Hex(Val(TxtDec.Text))
End Sub
Private Sub CmdDecOct_Click(Index As Integer)
TxtOct.Text = Oct(Val(TxtDec.Text))
End Sub
Private Sub CmdHexDec_Click(Index As Integer)
TxtDec.Text = Val("&h" + TxtHex.Text)
End Sub
Private Sub CmdOctDec_Click(Index As Integer)
TxtDec.Text = Val("&o" + TxtOct.Text)
End Sub
Private Sub cmdsinG_Click()
Text3.Text = Sin(Val(Text1.Text)) * 3.14 / 180
End Sub
Private Sub cmdsinR_Click()
Text3.Text = Sin(Val(Text1.Text))
End Sub
Private Sub cmdtgG_Click()
Text3.Text = Tan(Val(Text1.Text)) * 3.14 / 180
End Sub
Private Sub cmdtgR_Click()
Text3.Text = Tan(Val(Text1.Text))
End Sub
Private Sub Command1_Click()
If Val(Text1.Text) <= 0 Then
Text3.Text = "ÍÅ ÑÓÙÅÑÒÂÓÅÒ!!!"
Else
Text3.Text = Log(Val(Text1.Text))
End If
End Sub
Private Sub Command2_Click()
Text3.Text = Val(Text1.Text) ^ Val(Text2.Text)
End Sub
Private Sub Command3_Click()
If Val(Text1.Text) >= 0 Then
Text3.Text = Sqr(Val(Text1.Text))
Else
Text3.Text = "ÍÅ ÑÓÙÅÑÒÂÓÅÒ!!!"
End If
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Command5_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
TxtDec.Text = ""
TxtOct.Text = ""
TxtHex.Text = ""
End Sub
Private Sub del_Click()
If Val(Text1.Text) = 0 Then
Text3.Text = "ÍÀ ÍÎËÜ ÄÅËÈÒÜ ÍÅËÜÇß!"
Else
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End If
End Sub
Private Sub sloj_Click()
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub umn_Click()
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub vich_Click()
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub