VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H0080C0FF&
   Caption         =   "Логический калькулятор"
   ClientHeight    =   2304
   ClientLeft      =   3876
   ClientTop       =   3672
   ClientWidth     =   4200
   LinkTopic       =   "Form1"
   ScaleHeight     =   2304
   ScaleWidth      =   4200
   Begin VB.CommandButton cmdEqv 
      Caption         =   "Eqv"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1320
      TabIndex        =   7
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton txtXor 
      Caption         =   "Xor"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   6
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton cmdNot 
      Caption         =   "Not"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2400
      TabIndex        =   5
      Top             =   840
      Width           =   735
   End
   Begin VB.CommandButton cmdOr 
      Caption         =   "Or"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1320
      TabIndex        =   4
      Top             =   840
      Width           =   735
   End
   Begin VB.CommandButton cmdAnd 
      Caption         =   "And"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.6
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   3
      Top             =   840
      Width           =   735
   End
   Begin VB.TextBox txtC 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      Left            =   2880
      MultiLine       =   -1  'True
      TabIndex        =   2
      Top             =   120
      Width           =   1095
   End
   Begin VB.TextBox txtB 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1560
      MultiLine       =   -1  'True
      TabIndex        =   1
      Top             =   120
      Width           =   1095
   End
   Begin VB.TextBox txtA 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   465
      Left            =   240
      MultiLine       =   -1  'True
      TabIndex        =   0
      Top             =   120
      Width           =   1095
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim blnA, bln, blnC As Boolean
Private Sub cmdAnd_Click()
blnA = txtA.Text
blnB = txtB.Text
blnC = blnA And blnB
txtC.Text = blnC
End Sub
Private Sub cmdOr_Click()
blnA = txtA.Text
blnB = txtB.Text
blnC = blnA Or blnB
txtC.Text = blnC
End Sub
Private Sub cmdNot_Click()
blnA = txtA.Text
blnC = Not blnA
txtC.Text = blnC
End Sub
Private Sub txtXor_Click()
blnA = txtA.Text
blnB = txtB.Text
blnC = blnA Xor blnB
txtC.Text = blnC
End Sub
Private Sub cmdEqv_Click()
blnA = txtA.Text
blnB = txtB.Text
blnC = blnA Eqv blnB
txtC.Text = blnC
End Sub
