📄 保存文件.frm
字号:
VERSION 5.00
Begin VB.Form 保存文件
Caption = "保存文件"
ClientHeight = 3375
ClientLeft = 60
ClientTop = 450
ClientWidth = 7890
LinkTopic = "Form2"
ScaleHeight = 3375
ScaleWidth = 7890
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton 取消
Caption = "取消"
Height = 495
Left = 5760
TabIndex = 4
Top = 2040
Width = 1695
End
Begin VB.CommandButton 确定
Caption = "确定"
Height = 495
Left = 5760
TabIndex = 3
Top = 1080
Width = 1695
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 5640
TabIndex = 2
Top = 240
Width = 2175
End
Begin VB.FileListBox File1
Height = 2970
Left = 2880
TabIndex = 1
Top = 240
Width = 2535
End
Begin VB.DirListBox Dir1
Height = 3030
Left = 120
TabIndex = 0
Top = 240
Width = 2535
End
End
Attribute VB_Name = "保存文件"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub 取消_Click()
保存文件.Hide
End Sub
Private Sub 确定_Click()
Dim filename As String
On Error GoTo err
filename = File1.Path & "\" & File1.filename
Open filename For Output As #9
Print #9, bjtqux
Close #9
保存文件.Hide
Exit Sub
err:
MsgBox err.Description
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -