111,120
社区成员
发帖
与我相关
我的任务
分享
int id;
private void button1_Click(object sender, EventArgs e)
{
Process csdn = Process.Start("IExplore.exe", "www.csdn.net");
id = csdn.Id;
}
private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show((Process.GetProcessById(id)).ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}