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

📄 列表框的应用.frm

📁 VB源码,是初学者的福因.让你很快掌握VB编程
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2145
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   3060
   LinkTopic       =   "Form1"
   ScaleHeight     =   2145
   ScaleWidth      =   3060
   StartUpPosition =   3  '窗口缺省
   Begin VB.ListBox List2 
      Height          =   1320
      Left            =   1560
      TabIndex        =   1
      Top             =   600
      Width           =   1215
   End
   Begin VB.ListBox List1 
      Height          =   1320
      Left            =   120
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "你喜欢的颜色:"
      Height          =   255
      Left            =   1560
      TabIndex        =   3
      Top             =   240
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "所有颜色:"
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   240
      Width           =   1095
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
   List1.AddItem "红色"
   List1.AddItem "黄色"
   List1.AddItem "绿色"
   List1.AddItem "蓝色"
   List1.AddItem "白色"
   List1.AddItem "黑色"
   List1.AddItem "紫色"
   List1.AddItem "粉红色"
   List1.AddItem "浅绿色"
   List1.AddItem "米灰色"
End Sub
Private Sub List1_Click()
   List2.AddItem List1.Text
End Sub
Private Sub List2_Click()
  List2.RemoveItem List2.ListIndex
End Sub

⌨️ 快捷键说明

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