C#下的winform编程如何在窗体中实现超级链接
在窗体中拉一linkLabel控件,设置相关属性
在该控件下的linkLabel1_LinkClicked事件代码如下 :
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process myProcess = new Process();
myProcess.StartInfo.FileName = "iexplore.exe";
myProcess.StartInfo.Arguments = "
http://www.cn-web.com";
myProcess.Start();
}
记住引用:using System.Diagnostics;
OK,编译运行……