VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00800000&
   Caption         =   "Выбор цвета"
   ClientHeight    =   3240
   ClientLeft      =   4140
   ClientTop       =   3150
   ClientWidth     =   3735
   LinkTopic       =   "Form1"
   ScaleHeight     =   3240
   ScaleWidth      =   3735
   Begin VB.ComboBox cmb1 
      Height          =   315
      ItemData        =   "frm1.frx":0000
      Left            =   240
      List            =   "frm1.frx":001C
      Style           =   2  'Dropdown List
      TabIndex        =   9
      Top             =   120
      Width           =   1215
   End
   Begin VB.CommandButton cmdRGB 
      Caption         =   "RGB"
      Height          =   375
      Left            =   2880
      TabIndex        =   6
      Top             =   2520
      Width           =   495
   End
   Begin VB.TextBox txtBlue 
      Height          =   375
      Left            =   2880
      TabIndex        =   5
      Top             =   1920
      Width           =   495
   End
   Begin VB.TextBox txtGreen 
      Height          =   375
      Left            =   2880
      TabIndex        =   4
      Top             =   1320
      Width           =   495
   End
   Begin VB.TextBox txtRed 
      Height          =   375
      Left            =   2880
      TabIndex        =   3
      Top             =   720
      Width           =   495
   End
   Begin VB.TextBox txtQBC 
      Alignment       =   1  'Right Justify
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   720
      Width           =   495
   End
   Begin VB.TextBox txtColor 
      Height          =   375
      Left            =   840
      TabIndex        =   1
      Top             =   2640
      Width           =   1215
   End
   Begin VB.PictureBox picColor 
      BackColor       =   &H00FFFFFF&
      Height          =   495
      Left            =   240
      ScaleHeight     =   435
      ScaleWidth      =   2235
      TabIndex        =   0
      Top             =   2040
      Width           =   2295
   End
   Begin VB.Label lblRGB 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      Caption         =   "Функция RGB"
      Height          =   495
      Left            =   2640
      TabIndex        =   8
      Top             =   120
      Width           =   975
   End
   Begin VB.Label lblQBC 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      Caption         =   "Функция QBColor"
      Height          =   495
      Left            =   1560
      TabIndex        =   7
      Top             =   120
      Width           =   975
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmb1_Click()
Select Case cmb1.Text
Case Is = "vbBlack"
picColor.BackColor = vbBlack
txtColor = "черный"
Case Is = "vbBlue"
picColor.BackColor = vbBlue
txtColor = "синий"
Case Is = "vbGreen"
picColor.BackColor = vbGreen
txtColor = "зеленый"
Case Is = "vbCyan"
picColor.BackColor = vbCyan
txtColor = "голубой"
Case Is = "vbRed"
picColor.BackColor = vbRed
txtColor = "красный"
Case Is = "vbMagenta"
picColor.BackColor = vbMagenta
txtColor = "сиреневый"
Case Is = "vbYellow"
picColor.BackColor = vbYellow
txtColor = "желтый"
Case Is = "vbWhite"
picColor.BackColor = vbWhite
txtColor = "белый"
End Select
End Sub

Private Sub txtQBC_Change()
picColor.BackColor = QBColor(Val(txtQBC.Text))
txtColor = ""
End Sub
Private Sub cmdRGB_Click()
picColor.BackColor = RGB(Val(txtRed.Text), Val(txtGreen.Text), Val(txtBlue.Text))
txtColor = ""
End Sub
