c# winform 打开网站,状态栏上打开网站,超链接,isLink
设置状态栏为isLink然后给这个状态个onClick事件
在事件里写上
System.Diagnostics.Process.Start("http://www.heisetoufa.iteye.com");
private void toolStripStatusLabel1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("http://www.heisetoufa.iteye.com"); }
还有一种可以传参进去,使用指定程序并传入参数后打开,也就是用新开一个IE窗口来打开
System.Diagnostics.Process.Start(@"C:\Program Files\Internet Explorer\IEXPLORE.EXE","http://www.heisetoufa.iteye.com");
黑色头发:http://heisetoufa.iteye.com
页:
[1]