VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   1725
   ClientLeft      =   60
   ClientTop       =   375
   ClientWidth     =   3855
   LinkTopic       =   "Form1"
   ScaleHeight     =   1725
   ScaleWidth      =   3855
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "UNDO COUNT"
      Height          =   375
      Left            =   1920
      TabIndex        =   1
      Top             =   1200
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "COUNT"
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   1200
      Width           =   1455
   End
   Begin VB.Label Label7 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3120
      TabIndex        =   8
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label6 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2640
      TabIndex        =   7
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label5 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2160
      TabIndex        =   6
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label4 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1680
      TabIndex        =   5
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1200
      TabIndex        =   4
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   720
      TabIndex        =   3
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackColor       =   &H00E0E0E0&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   238
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   375
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Lic As Integer, i As Integer
Dim Info As String
Private Sub Command1_Click()
Select Case Lic

Case 0

    With Label1
       .Caption = 1
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
      Lic = 1
Case 1

    With Label2
       .Caption = 2
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
     Lic = 2

Case 2

    With Label3
       .Caption = 3
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
      Lic = 3
Case 3

    With Label4
       .Caption = 4
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
     Lic = 4

Case 4

    With Label5
       .Caption = 5
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
     Lic = 5

Case 5

    With Label6
       .Caption = 6
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
      Lic = 6
Case 6

    With Label7
       .Caption = 7
       .BackColor = RGB(44, 164, 214)
       .ForeColor = RGB(255, 255, 255)
   End With
     Lic = 7
     
Case 7
MsgBox "The packet of calculations is full", vbInformation, "Attention"
     MsgBox "You want to remove results", vbQuestion + vbYesNo, "questions"
              
               If vbYes = 6 Then
                  For i = 0 To 6
                    Controls("Label" & i).Caption = ""
                  Next
               Else
                  Exit Sub
               End If
End Select
End Sub

Private Sub Command2_Click()
Select Case Lic

Case 7

    With Label7
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
      Lic = 6
Case 6

    With Label6
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
     Lic = 5

Case 5

    With Label5
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
      Lic = 4
Case 4

    With Label4
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
     Lic = 3

Case 3

    With Label3
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
     Lic = 2

Case 2

    With Label2
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
      Lic = 1
Case 1

    With Label1
       .Caption = ""
       .BackColor = &HE0E0E0
   End With
     Lic = 0
Case 0
MsgBox "Resignation is not possible", vbExclamation, "Error"
End
End Select
End Sub
