郑德才博客 记录学习,记录工作,学习知识分享!

超级链接的程序

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
linkLabel1.Text = "请单击访问主页";
linkLabel1.Links.Add(5,4,"http://www.dali.edu.cn");

}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
string a = e.Link.LinkData.ToString();
System.Diagnostics.Process.Start(a);
e.Link.Visited = true;

}
}
}
2012年4月2日 | 发布:郑德才博客 | 分类:学习之路 | 评论:1

留言列表:

  • 深圳奥风服装有限公司 发布于 2012/4/2 15:48:38  回复
  • 真是经验,很实用,很好用,学习了!

发表留言: