📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4215
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 4215
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "关闭"
Height = 375
Left = 3120
TabIndex = 6
Top = 2880
Width = 615
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 375
Left = 3120
TabIndex = 5
Top = 2160
Width = 615
End
Begin VB.CommandButton Command1
Caption = "增加"
Height = 375
Left = 3120
TabIndex = 4
Top = 1320
Width = 615
End
Begin VB.TextBox Text1
Height = 375
Left = 2880
TabIndex = 3
Top = 240
Width = 1335
End
Begin VB.ComboBox Combo3
Height = 300
Left = 240
Style = 2 'Dropdown List
TabIndex = 2
Top = 2880
Width = 2175
End
Begin VB.ComboBox Combo2
Height = 1260
Left = 240
Style = 1 'Simple Combo
TabIndex = 1
Text = "北京"
Top = 1320
Width = 2175
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "Form1.frx":0000
Left = 360
List = "Form1.frx":0002
Sorted = -1 'True
TabIndex = 0
Text = "北京"
Top = 240
Width = 2175
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Combo1.AddItem Text1.Text
Combo2.AddItem Text1.Text
Combo3.AddItem Text1.Text
End Sub
Private Sub Command2_Click()
Dim selecttext As Integer
selecttext = Combo1.ListIndex
Combo1.RemoveItem selecttext
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Form_Load()
Combo1.AddItem "武汉"
Combo1.AddItem "上海"
Combo1.AddItem "南京"
Combo2.AddItem "武汉"
Combo2.AddItem "上海"
Combo2.AddItem "南京"
Combo3.AddItem "武汉"
Combo3.AddItem "上海"
Combo3.AddItem "南京"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -