【VB开源代码栏目提醒】:网学会员VB开源代码为您提供frmColour.frm参考,解决您在frmColour.frm学习中工作中的难题,参考学习。
VERSION 5.00
Begin VB.Form frmColour
AutoRedraw = -1 'True
BorderStyle = 4 'Fixed ToolWindow
Caption = "Select Colour"
ClientHeight = 3135
ClientLeft = 45
ClientTop = 285
ClientWidth = 3135
Icon = "frmColour.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3135
ScaleWidth = 3135
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 2
Left = 1320
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 2
Top = 2400
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 10
Left = 1320
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 10
Top = 360
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 13
Left = 1680
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 13
Top = 600
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 14
Left = 960
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 14
Top = 600
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 9
Left = 600
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 9
Top = 840
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 11
Left = 2040
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 11
Top = 840
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 6
Left = 960
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 6
Top = 2160
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 1
Left = 600
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 1
Top = 1920
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 4
Left = 240
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 4
Top = 1680
Width = 495
End
Begin
VB.CommandButton cmdColour
BackColor = &H000000FF&
Caption = "Select"
Height = 615
Left = 1200
Style = 1 'Graphical
TabIndex = 16
Top = 1320
Width = 735
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 5
Left = 1680
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 5
Top = 2160
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 3
Left = 2040
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 3
Top = 1920
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H8000000F&
Height = 495
Index = 12
Left = 240
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 12
Top = 1080
Visible = 0 'False
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 7
Left = 2400
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 7
Top = 1080
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 8
Left = 2400
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 8
Top = 1680
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 0
Left = 2400
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 0
Top = 240
Width = 495
End
Begin VB.PictureBox picC
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 495
Index = 15
Left = 240
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 15
Top = 240
Visible = 0 'False
Width = 495
End
End
Attribute VB_Name = "frmColour"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim bolBlackOn As Boolean
Dim bolWhiteOn As Boolean
Dim intColour As Byte
Private Sub cmdColour_Click()
Hide
End Sub
Private Sub Form_Load()
picC(0).Visible = bolBlackOn
picC(15).Visible = bolWhiteOn
For i = 0 To 15
picC(i).BackColor = QBColor(i)
Next i
End Sub
Private Sub picC_Click(Index As Integer