📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "如何调用EXE文件并使其获得焦点"
ClientHeight = 2325
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 2325
ScaleWidth = 4680
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 465
Left = 1245
TabIndex = 1
Top = 1230
Width = 1995
End
Begin VB.CommandButton Command1
Caption = "调用EXE文件"
Height = 465
Left = 1260
TabIndex = 0
Top = 555
Width = 1995
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim retval
retval = Shell(App.Path & "\工程1.exe", 1)
End Sub
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -