VB老鸟进 我想挂起某进程,如何办到?

来源:百度知道 编辑:UC知道 时间:2024/09/21 00:34:15
还有结束某进程,请给出个例子就可以

把下面代码保存为Form.frm文件,然后打开该文件,运行即可。

VERSION 5.00
Begin VB.Form frmMain
Caption = "Form1"
ClientHeight = 2700
ClientLeft = 60
ClientTop = 450
ClientWidth = 4845
LinkTopic = "Form1"
ScaleHeight = 2700
ScaleWidth = 4845
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdTerminate
Caption = "终止该进程"
Height = 495
Left = 3360
TabIndex = 3
Top = 1800
Width = 1335
End
Begin VB.CommandButton cmdResume
Caption = "恢复进程"
Height = 495
Left = 1560
TabIndex = 0
Top = 1800
Width = 1815
End
Begin VB.Command