pexam10_72.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 177 行
FRM
177 行
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 1 'Fixed Single
Caption = "运行"
ClientHeight = 3255
ClientLeft = 45
ClientTop = 330
ClientWidth = 6420
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3255
ScaleWidth = 6420
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4440
TabIndex = 7
Top = 1800
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4440
TabIndex = 6
Top = 1200
Width = 1095
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 2520
MultiLine = -1 'True
ScrollBars = 1 'Horizontal
TabIndex = 1
Top = 120
Width = 3495
End
Begin VB.Frame Frame1
Caption = "请选择运行方式"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2055
Left = 360
TabIndex = 0
Top = 960
Width = 3375
Begin VB.OptionButton Option3
Caption = "最小化"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 5
Top = 1560
Width = 1575
End
Begin VB.OptionButton Option2
Caption = "最大化"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 240
TabIndex = 4
Top = 1080
Width = 1695
End
Begin VB.OptionButton Option1
Caption = "正常"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 3
Top = 480
Value = -1 'True
Width = 1575
End
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入文件名:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 240
TabIndex = 2
Top = 360
Width = 2310
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()
On Error GoTo ErrorHandler '如果出现错误,转到ErrorHandler处执行
FName = Trim(Text1.Text)
If Option1.Value = True Then Shell FName, 1 ' 正常方式并拥有焦点
If Option2.Value = True Then Shell FName, 3 ' 最大化方式并拥有焦点
If Option3.Value = True Then Shell FName, 2 ' 最小化方式并拥有焦点
Exit Sub
ErrorHandler:
MsgBox "不能运行该程序", , "注意"
Resume Next '从产生错误的语句之后开始运行
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?