在winform开发过程中,有时需要打开一个网址,如何打开一个超链接地址呢
可以使用linkLabel控件,拖放一个链接控件后,设置text属性为链接地址,编写控件click事件代码:
System.Diagnostics.Process.Start("http://www.google.com");
如果需要指定浏览器打开,比如ie 只需要修改代码为
System.Diagnostics.Process.Start("iexplore.exe","http://www.google.com");
以上就是winform中打开超链接!
黄山市民网:https://www.huangshanshimin.com/