VERSION 5.00
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   Caption         =   "Form1"
   ClientHeight    =   5655
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   11850
   LinkTopic       =   "Form1"
   ScaleHeight     =   5655
   ScaleWidth      =   11850
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text3 
      Height          =   615
      Left            =   4800
      TabIndex        =   10
      Text            =   "Text3"
      Top             =   1680
      Width           =   1935
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   4800
      TabIndex        =   9
      Text            =   "Text2"
      Top             =   960
      Width           =   1935
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   4800
      TabIndex        =   8
      Text            =   "Text1"
      Top             =   240
      Width           =   1815
   End
   Begin VB.Frame Frame2 
      Caption         =   "Frame2"
      Height          =   615
      Left            =   3000
      TabIndex        =   7
      Top             =   1680
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   495
      Left            =   3000
      TabIndex        =   6
      Top             =   600
      Width           =   1575
   End
   Begin VB.CommandButton Command6 
      Caption         =   "корінь"
      Height          =   1815
      Left            =   960
      TabIndex        =   5
      Top             =   600
      Width           =   1335
   End
   Begin VB.CommandButton Command5 
      Caption         =   "Очистити"
      Height          =   1215
      Left            =   3840
      TabIndex        =   4
      Top             =   2760
      Width           =   1095
   End
   Begin VB.CommandButton Command4 
      Caption         =   "/"
      Height          =   615
      Left            =   2280
      TabIndex        =   3
      Top             =   3360
      Width           =   1455
   End
   Begin VB.CommandButton Command3 
      Caption         =   "*"
      Height          =   615
      Left            =   960
      TabIndex        =   2
      Top             =   3360
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "-"
      Height          =   615
      Left            =   2280
      TabIndex        =   1
      Top             =   2760
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "+"
      Height          =   615
      Left            =   960
      TabIndex        =   0
      Top             =   2760
      Width           =   1335
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
Frame1.Caption = "Додати"
End Sub

Private Sub Command2_Click()
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
Frame1.Caption = "Відняти"
End Sub

Private Sub Command3_Click()

Text3.Text = Val(Text1.Text) * Val(Text2.Text)
Frame1.Caption = "Помножити"
End Sub

Private Sub Command4_Click()
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
Frame1.Caption = "Поділити"
End Sub

Private Sub Command5_Click()
Text1.Text = "" 'пусте місце

Text2.Text = "" 'пусте місце

Text3.Text = ""
End Sub



Private Sub Command6_Click()
Text3.Text = Sqr(Text1.Text)

Frame1.Caption = "Корінь"
End Sub


Private Sub Form_Load()

Form1.Caption = "Калькулятор"
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Frame1.Caption = "Дія"
Frame2.Caption = "Результат:"

End Sub

