form1.frm
来自「本文件包含200个visual baisc实例」· FRM 代码 · 共 42 行
FRM
42 行
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 + =
减小字号Ctrl + -
显示快捷键?