📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form form2
BackColor = &H80000000&
Caption = "文件浏览"
ClientHeight = 3990
ClientLeft = 60
ClientTop = 345
ClientWidth = 6135
LinkTopic = "Form2"
MaxButton = 0 'False
ScaleHeight = 3990
ScaleWidth = 6135
StartUpPosition = 2 '屏幕中心
Begin VB.DirListBox Dir1
Height = 1560
Left = 3480
TabIndex = 5
Top = 720
Width = 1815
End
Begin VB.FileListBox File1
Height = 2250
Left = 240
TabIndex = 4
Top = 360
Width = 2295
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 3480
TabIndex = 3
Top = 360
Width = 1815
End
Begin VB.TextBox Text1
Height = 615
Left = 240
TabIndex = 2
Top = 2880
Width = 2295
End
Begin VB.CommandButton Command2
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3600
TabIndex = 1
ToolTipText = "回到首页"
Top = 3240
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3600
TabIndex = 0
ToolTipText = "读入文本文件"
Top = 2640
Width = 1455
End
End
Attribute VB_Name = "form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.drawer.Enabled = True
Form1.drawer.Enabled = True
form2.Hide
Form1.Show
End Sub
Private Sub Command2_Click()
form2.Hide
Form1.Show
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1
End Sub
Private Sub File1_Click()
Text1.Text = File1.Path + "\" + File1
End Sub
Private Sub File1_DblClick()
'If CodeNumber = 0 Then
'ret = MsgBox("请录入数据", vbOKOnly, "确定")
'Exit Sub
Form1.drawer.Enabled = True
Form1.drawer.Enabled = True
form2.Hide
Form1.Show
End Sub
Private Sub Form_Load()
File1.Pattern = "*.txt"
Command1.Enabled = flase
End Sub
Private Sub Text1_Change()
Command1.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -