📄 fileform.frm
字号:
VERSION 5.00
Begin VB.Form FileForm
BorderStyle = 3 'Fixed Dialog
Caption = "Find Your Attachment Below"
ClientHeight = 3048
ClientLeft = 2544
ClientTop = 2172
ClientWidth = 5124
LinkTopic = "Form6"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3048
ScaleWidth = 5124
ShowInTaskbar = 0 'False
Begin VB.CommandButton CloseFile
Caption = "OK"
Height = 372
Left = 3720
TabIndex = 4
Top = 2520
Width = 1212
End
Begin VB.CommandButton CancelFile
Caption = "Cancel"
Height = 372
Left = 2280
TabIndex = 3
Top = 2520
Width = 1212
End
Begin VB.FileListBox FileList
Appearance = 0 'Flat
ForeColor = &H00000000&
Height = 1752
Left = 2400
TabIndex = 0
Top = 480
Width = 2550
End
Begin VB.DriveListBox DriveBox
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
ForeColor = &H00000000&
Height = 288
Left = 120
TabIndex = 2
Top = 120
Width = 2150
End
Begin VB.DirListBox DirList
Appearance = 0 'Flat
ForeColor = &H00000000&
Height = 1800
Left = 120
TabIndex = 1
Top = 540
Width = 2150
End
End
Attribute VB_Name = "FileForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' StealthMail - FileForm.FRM
' Copyright Patterson Programming, 1996-1999
Private Sub Form_Load()
FileForm.Left = (Screen.Width - FileForm.Width) / 2
FileList.Refresh
DoEvents
End Sub
Sub Form_QueryUnload(x%, y%)
If Right$(DrivePath$, 1) <> "\" Then
DrivePath$ = DrivePath$ + "\"
End If
End Sub
Private Sub CancelFile_Click()
FileCancel = -1
Unload FileForm
DoEvents
End Sub
Private Sub CloseFile_Click()
FileCancel = 0
Unload FileForm
DoEvents
End Sub
Private Sub DirList_click()
filename$ = ""
If DirList.ListIndex < 0 Then
DirList.Path = DirList.List(DirList.ListIndex)
ElseIf FileList.ListIndex <> -1 Then
FileList.ListIndex = -1
End If
End Sub
Private Sub DirList_change()
filename$ = ""
FileForm.FileList.Path = FileForm.DirList.Path
DrivePath$ = FileForm.FileList.Path
If Right$(DrivePath$, 1) <> "\" Then
DrivePath$ = DrivePath$ + "\"
End If
End Sub
Private Sub DirList_keypress(Keyascii As Integer)
If Keyascii = 13 Then DirList.Path = DirList.List(DirList.ListIndex)
End Sub
Private Sub DriveBox_Change()
On Local Error GoTo NoDisk
FileForm.DirList.Path = FileForm.DriveBox.Drive
Exit Sub
NoDisk:
MsgBox1 "Drive Not Ready", 0, "Error"
FileForm.DriveBox.Drive = FileForm.DirList.Path
Exit Sub
End Sub
Private Sub FileList_click()
filename$ = FileForm.FileList.filename
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -