📄 例2.frm
字号:
VERSION 5.00
Begin VB.Form FRM7_3_4
Caption = "Form1"
ClientHeight = 3705
ClientLeft = 60
ClientTop = 450
ClientWidth = 6990
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 3705
ScaleWidth = 6990
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "清 空"
Height = 615
Left = 5040
TabIndex = 6
Top = 2760
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "移 除"
Height = 615
Left = 5040
TabIndex = 5
Top = 1800
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "添 加"
Height = 615
Left = 480
TabIndex = 4
Top = 2760
Width = 1815
End
Begin VB.TextBox Text1
Height = 495
Left = 240
TabIndex = 3
Top = 1920
Width = 2175
End
Begin VB.ListBox List1
Height = 2340
ItemData = "例2.frx":0000
Left = 2640
List = "例2.frx":0013
TabIndex = 2
Top = 120
Width = 1935
End
Begin VB.Label Label2
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Caption = "请先选中要移除的项目,然后单击""移除""按钮"
Height = 1335
Left = 4800
TabIndex = 1
Top = 240
Width = 1815
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Caption = "请在下列文本框中输入要添加的文本,然后单击""添加""按钮"
Height = 1335
Left = 240
TabIndex = 0
Top = 240
Width = 2175
End
End
Attribute VB_Name = "FRM7_3_4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
List1.AddItem Text1
Text1 = ""
Text1.SetFocus
End Sub
Private Sub Command2_Click()
List1.RemoveItem List1.ListIndex
End Sub
Private Sub Command3_Click()
List1.Clear
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -