form3.frm

来自「上传的包含两个文件」· FRM 代码 · 共 111 行

FRM
111
字号
VERSION 5.00
Begin VB.Form Form3 
   Caption         =   "Form3"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   3450
   LinkTopic       =   "Form3"
   ScaleHeight     =   3150
   ScaleWidth      =   3450
   StartUpPosition =   3  '窗口缺省
   Begin VB.HScrollBar HScroll1 
      Height          =   375
      Index           =   2
      Left            =   480
      TabIndex        =   5
      Top             =   1680
      Width           =   2775
   End
   Begin VB.HScrollBar HScroll1 
      Height          =   375
      Index           =   1
      Left            =   480
      TabIndex        =   4
      Top             =   960
      Width           =   2775
   End
   Begin VB.HScrollBar HScroll1 
      Height          =   375
      Index           =   0
      Left            =   480
      TabIndex        =   2
      Top             =   240
      Width           =   2775
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   2640
      TabIndex        =   0
      Top             =   2640
      Width           =   735
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   " B"
      Height          =   180
      Index           =   2
      Left            =   120
      TabIndex        =   7
      Top             =   1800
      Width           =   180
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   " G"
      Height          =   180
      Index           =   1
      Left            =   120
      TabIndex        =   6
      Top             =   1080
      Width           =   180
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   " R"
      Height          =   180
      Index           =   0
      Left            =   120
      TabIndex        =   3
      Top             =   360
      Width           =   180
   End
   Begin VB.Label Label1 
      Height          =   495
      Left            =   360
      TabIndex        =   1
      Top             =   2400
      Width           =   1695
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
 Form1.BackColor = Label1.BackColor
 Form3.Hide
End Sub

Private Sub Form_Load()
 Label1.BackColor = QBColor(15)
 For i = 0 To 2
   HScroll1(i).Max = 255
 Next i
End Sub

Private Sub HScroll1_Change(Index As Integer)
 Dim r, g, b As Integer
 r = HScroll1(0).Value
 g = HScroll1(1).Value
 b = HScroll1(2).Value
 Label1.BackColor = RGB(r, g, b)
End Sub


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?