VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00008000&
   Caption         =   "Инженерный калькулятор"
   ClientHeight    =   3105
   ClientLeft      =   3210
   ClientTop       =   3300
   ClientWidth     =   6075
   LinkTopic       =   "Form1"
   ScaleHeight     =   3105
   ScaleWidth      =   6075
   Begin VB.CommandButton cmdExp 
      Caption         =   "Exp"
      Height          =   375
      Left            =   2400
      TabIndex        =   16
      Top             =   2400
      Width           =   735
   End
   Begin VB.CommandButton cmdAtn 
      Caption         =   "Atn"
      Height          =   375
      Left            =   240
      TabIndex        =   15
      Top             =   1800
      Width           =   735
   End
   Begin VB.CommandButton cmdRnd 
      Caption         =   "Rnd"
      Height          =   375
      Left            =   240
      TabIndex        =   14
      Top             =   2400
      Width           =   735
   End
   Begin VB.CommandButton cmdLog 
      Caption         =   "Log"
      Height          =   375
      Left            =   1320
      TabIndex        =   13
      Top             =   2400
      Width           =   735
   End
   Begin VB.CommandButton cmdSt 
      Caption         =   "X^Y"
      Height          =   375
      Left            =   1320
      TabIndex        =   12
      Top             =   1800
      Width           =   735
   End
   Begin VB.CommandButton cmdSqr 
      Caption         =   "Sqr"
      Height          =   375
      Left            =   2400
      TabIndex        =   11
      Top             =   1800
      Width           =   735
   End
   Begin VB.CommandButton cmdTan 
      Caption         =   "Tan"
      Height          =   375
      Left            =   2400
      TabIndex        =   10
      Top             =   1080
      Width           =   735
   End
   Begin VB.CommandButton cmdCos 
      Caption         =   "Cos"
      Height          =   375
      Left            =   1320
      TabIndex        =   9
      Top             =   1080
      Width           =   735
   End
   Begin VB.CommandButton cmdSin 
      Caption         =   "Sin"
      Height          =   375
      Left            =   240
      TabIndex        =   8
      Top             =   1080
      Width           =   735
   End
   Begin VB.TextBox txt1Dec 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   240
      TabIndex        =   7
      Top             =   360
      Width           =   735
   End
   Begin VB.TextBox txt3Dec 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   2400
      TabIndex        =   6
      Top             =   360
      Width           =   1455
   End
   Begin VB.TextBox txt2Dec 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   1320
      TabIndex        =   5
      Top             =   360
      Width           =   735
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "Выход"
      Height          =   492
      Left            =   4320
      TabIndex        =   4
      Top             =   1680
      Width           =   1212
   End
   Begin VB.CommandButton cmdDelen 
      Caption         =   "/"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   5040
      TabIndex        =   3
      Top             =   960
      Width           =   735
   End
   Begin VB.CommandButton cmdUmn 
      Caption         =   "*"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   5040
      TabIndex        =   2
      Top             =   240
      Width           =   735
   End
   Begin VB.CommandButton cmdMinus 
      Caption         =   "-"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   4080
      TabIndex        =   1
      Top             =   960
      Width           =   735
   End
   Begin VB.CommandButton cmdPlus 
      Caption         =   "+"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   4080
      TabIndex        =   0
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdPlus_Click()
txt3Dec.Text = Val(txt1Dec.Text) + Val(txt2Dec.Text)
End Sub
Private Sub cmdMinus_Click()
txt3Dec.Text = Val(txt1Dec.Text) - Val(txt2Dec.Text)
End Sub
Private Sub cmdUmn_Click()
txt3Dec.Text = Val(txt1Dec.Text) * Val(txt2Dec.Text)
End Sub
Private Sub cmdDelen_Click()
txt3Dec.Text = Val(txt1Dec.Text) / Val(txt2Dec.Text)
End Sub
Private Sub cmdSin_Click()
txt3Dec.Text = Sin(Val(txt1Dec.Text))
End Sub
Private Sub cmdCos_Click()
txt3Dec.Text = Cos(Val(txt1Dec.Text))
End Sub
Private Sub cmdTan_Click()
txt3Dec.Text = Tan(Val(txt1Dec.Text))
End Sub
Private Sub cmdSqr_Click()
txt3Dec.Text = Sqr(Val(txt1Dec.Text))
End Sub
Private Sub cmdSt_Click()
txt3Dec.Text = Val(txt1Dec.Text) ^ Val(txt2Dec.Text)
End Sub
Private Sub cmdLog_Click()
txt3Dec.Text = Log(Val(txt1Dec.Text))
End Sub
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdRnd_Click()
txt3Dec.Text = Rnd
End Sub
Private Sub cmdAtn_Click()
txt3Dec.Text = Atn(Val(txt1Dec.Text))
End Sub
Private Sub cmdExp_Click()
txt3Dec.Text = Exp(Val(txt1Dec.Text))
End Sub

