form1.frm
来自「这里有很多很实用的VB编程案例,方便大家学习VB.」· FRM 代码 · 共 73 行
FRM
73 行
VERSION 5.00
Begin VB.Form Form1
Caption = "驱动器、目录和文件列表框"
ClientHeight = 3030
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3030
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 270
Left = 2400
TabIndex = 3
Text = "*.exe"
Top = 120
Width = 2175
End
Begin VB.FileListBox File1
Height = 1530
Left = 2400
TabIndex = 2
Top = 600
Width = 2175
End
Begin VB.DirListBox Dir1
Height = 1560
Left = 480
TabIndex = 1
Top = 600
Width = 1695
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 480
TabIndex = 0
Top = 120
Width = 1695
End
Begin VB.Label Label1
Height = 375
Left = 480
TabIndex = 4
Top = 2400
Width = 4095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
Label1.Caption = File1.FileName
End Sub
Private Sub Form_Load()
File1.Pattern = Text1.Text
End Sub
Private Sub Text1_Change()
File1.Pattern = Text1.Text
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?