winform窗体中链接网页

在窗体中添加一个LinkLabel控件
双击该控件,增加一个事件
在事件中写如下代码
string url = http://www.baidu.com/;

其中url也可以是这样的,比如“”string url = "f:\\我的网页.html";
System.Diagnostics.Process.Start("IExplore.exe", url);

通过System.Diagnostics.Process.Start()方法来启动IE或者某种浏览器

posted @ 2008-11-28 10:48  凌点  阅读(912)  评论(0编辑  收藏  举报