













比如说,你要点一下按钮,就访问google,那就拖个button出来,写入下代码,记得添加引用:
using System.Diagnostics;
private void button1_Click(object sender, EventArgs e)
{
Process myProcess = new Process();
myProcess.StartInfo.FileName = "iexplore.exe";
myProcess.StartInfo.Arguments = "http://www.google.com";
myProcess.Start();
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。