📄 sourcefile.frm
字号:
VERSION 5.00
Begin VB.Form Dialog
BorderStyle = 3 'Fixed Dialog
Caption = "GPS接收文件"
ClientHeight = 3180
ClientLeft = 5430
ClientTop = 3960
ClientWidth = 6030
Icon = "sourcefile.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3180
ScaleWidth = 6030
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
Height = 270
Left = 0
Locked = -1 'True
TabIndex = 5
Top = 0
Width = 5895
End
Begin VB.FileListBox File1
Height = 2790
Left = 2400
TabIndex = 4
Top = 360
Width = 2175
End
Begin VB.DirListBox Dir1
Height = 2400
Left = 0
TabIndex = 3
Top = 720
Width = 2295
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 0
TabIndex = 2
Top = 360
Width = 2295
End
Begin VB.CommandButton CancelButton
Caption = "Cancel"
Height = 375
Left = 4680
TabIndex = 1
Top = 2760
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "OK"
Height = 375
Left = 4680
TabIndex = 0
Top = 2280
Width = 1215
End
Begin VB.Label Label1
Caption = "请选择你要转换的文件!"
Height = 375
Left = 4680
TabIndex = 6
Top = 480
Width = 1215
End
End
Attribute VB_Name = "Dialog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CancelButton_Click()
Form1.Sourcefile.Caption = "源文件(.txt)"
Form1.Source_File_Name = ""
Dialog.Hide
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
If Right$(Dir1.Path, 1) = "\" Then
Text1.Text = Dir1.Path + File1.FileName
Else
Text1.Text = Dir1.Path + "\" + File1.FileName
End If
End Sub
Private Sub File1_PathChange()
File1.FileName = "*.txt"
Text1.Text = Dir1.Path
End Sub
Private Sub Form_Load()
Drive1.Drive = App.Path
File1.FileName = "*.txt"
Text1.Text = Dir1.Path
End Sub
Private Sub OKButton_Click()
If File1.FileName = "" Then
MsgBox ("请选择你要转换的文件!")
Else
Form1.Sourcefile.Caption = "源文件(.txt) " + File1.FileName
Form1.Source_File_Name = Text1.Text
Dialog.Hide
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -