📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
Caption = "Save Batch File As..."
ClientHeight = 3915
ClientLeft = 60
ClientTop = 345
ClientWidth = 4200
LinkTopic = "Form4"
ScaleHeight = 3915
ScaleWidth = 4200
StartUpPosition = 1 'CenterOwner
Begin VB.TextBox Text1
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 120
TabIndex = 3
Top = 3120
Width = 3975
End
Begin VB.DriveListBox Drive1
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 2
Top = 120
Width = 3975
End
Begin VB.DirListBox Dir1
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2565
Left = 120
TabIndex = 1
Top = 480
Width = 3975
End
Begin VB.CommandButton Command1
Caption = "Save File"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 960
TabIndex = 0
Top = 3480
Width = 2295
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
Var = MsgBox("Please fill in the name of your program", vbOKOnly + vbInformation, "Error")
Else
Open Dir1.Path & "\" & Text1.Text For Output As #1
Print #1, Form1.Text1.Text
Close #1
End If
Form4.Visible = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -