📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 1935
ClientTop = 3345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2640
TabIndex = 5
Top = 2760
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 0
TabIndex = 4
Text = "Text1"
Top = 2160
Width = 4695
End
Begin VB.FileListBox File1
Height = 2070
Left = 2280
TabIndex = 3
Top = 0
Width = 2415
End
Begin VB.CommandButton Command1
Caption = "打开"
Height = 375
Left = 1080
TabIndex = 2
Top = 2760
Width = 975
End
Begin VB.DirListBox Dir1
Height = 1770
Left = 0
TabIndex = 1
Top = 0
Width = 2175
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 0
TabIndex = 0
Top = 1800
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()
MsgBox "Ok,you want to open:" & Chr(13) & Text1.Text
End
End Sub
Private Sub Command2_Click()
MsgBox "File open cancled!"
End
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.List(Drive1.ListIndex)
End Sub
Private Sub File1_Click()
If Right(File1.Path, 1) = "\" Then
Text1.Text = File1.Path & File1.FileName
Else
Text1.Text = File1.Path & "\" & File1.FileName
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -