⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 vb电子书籍
💻 FRM
字号:
   VERSION 5.00
   Begin VB.Form aa
      BackColor       =   &H00E0E0E0&
      Caption         =   "计算机"
      ClientHeight    =   3420
      ClientLeft      =   60
      ClientTop       =   345
      ClientWidth     =   5760
      FillColor       =   &H00C0C0C0&
      BeginProperty Font
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Icon            =   "Form1.frx":0000
      LinkTopic       =   "Form1"
      MaxButton       =   0   'False
      ScaleHeight     =   3420
      ScaleWidth      =   5760
      StartUpPosition =   2  '屏幕中心
      Begin VB.HScrollBar HScroll3
         Height          =   255
         LargeChange     =   25
         Left            =   840
         Max             =   100
         TabIndex        =   9
         Top             =   1440
         Width           =   2535
      End
      Begin VB.HScrollBar HScroll2
         Height          =   255
         LargeChange     =   25
         Left            =   840
         Max             =   100
         TabIndex        =   8
         Top             =   960
         Width           =   2535
      End
      Begin VB.HScrollBar HScroll1
         Height          =   255
         LargeChange     =   25
         Left            =   840
         Max             =   100
         TabIndex        =   7
         Top             =   480
         Width           =   2535
      End
      Begin VB.TextBox Text2
         Height          =   375
         Left            =   3720
         TabIndex        =   6
         Text            =   "这是一个文本框"
         Top             =   2400
         Width           =   1575
      End
      Begin VB.CommandButton Command2
         Caption         =   "设置背景颜色"
         Height          =   375
         Left            =   1200
         TabIndex        =   5
         Top             =   2760
         Width           =   1815
      End
      Begin VB.CommandButton Command1
         Caption         =   "设置前景颜色"
         Height          =   375
         Left            =   1200
         TabIndex        =   4
         Top             =   2160
         Width           =   1815
      End
      Begin VB.TextBox Text1
         Height          =   375
         Left            =   3960
         TabIndex        =   0
         Top             =   840
         Width           =   1575
      End
      Begin VB.Label Label3
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "兰"
         Height          =   240
         Left            =   360
         TabIndex        =   3
         Top             =   1440
         Width           =   240
      End
      Begin VB.Label Label2
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "红"
         Height          =   240
         Left            =   360
         TabIndex        =   2
         Top             =   480
         Width           =   240
      End
      Begin VB.Label Label1
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "绿"
         Height          =   240
         Left            =   360
         TabIndex        =   1
         Top             =   960
         Width           =   240
      End
   End
   Attribute VB_Name = "aa"
   Attribute VB_GlobalNameSpace = False
   Attribute VB_Creatable = False
   Attribute VB_PredeclaredId = True
   Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
Dim red As Long, green As Long, blue As Long

'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
    Text2.ForeColor = Text1.BackColor
    
End Sub
    
'##################################################################
'## 过程名称:Command2_Click
'## 参数: 无
'##################################################################
Private Sub Command2_Click()
    Text2.BackColor = Text1.BackColor
End Sub
    
'##################################################################
'## 过程名称:HScroll1_Change
'## 参数: 无
'##################################################################
Private Sub HScroll1_Change()
    red = HScroll1.Value
    green = HScroll2.Value
    blue = HScroll3.Value
    Text1.BackColor = red + green * 256 + blue * 256 * 256
End Sub

⌨️ 快捷键说明

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