?? 文件管理系統.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "例[10-1]文件管理系統"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 345
ClientWidth = 4665
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 4665
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo1
Height = 300
ItemData = "文件管理系統.frx":0000
Left = 120
List = "文件管理系統.frx":0002
TabIndex = 3
Top = 2640
Width = 1815
End
Begin VB.FileListBox File1
Height = 2790
Hidden = -1 'True
Left = 2040
System = -1 'True
TabIndex = 2
Top = 120
Width = 2535
End
Begin VB.DirListBox Dir1
Height = 1980
Left = 120
TabIndex = 1
Top = 600
Width = 1815
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 120
TabIndex = 0
Top = 120
Width = 1815
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()
Item = "所有文件(*.*)"
Combo1.AddItem Item
Item = "窗體文件(*.frm)"
Combo1.AddItem Item
Item = "位圖文件(*.bmp)"
Combo1.AddItem Item
Combo1.ListIndex = 0
End Sub
Private Sub Combo1_Click()
Select Case Combo1.Text
Case "所有文件(*.*)"
File1.Pattern = "*.*"
Case "窗體文件(*.frm)"
File1.Pattern = "*.frm"
Case "位圖文件(*.bmp)"
File1.Pattern = "*.bmp"
End Select
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub File1_Click()
'當用戶單擊文件列表框中的某個文件時,輸出該文件的文件名
MsgBox File1.FileName
End Sub
Private Sub File1_DblClick()
'如果要使用戶雙擊文件列表框中的某個可執行文件就能立即執行,則可編寫如下事件過程。
ChDir Dir1.Path
ReturnValue = Shell(File1.FileName, 1)
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -