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;
}
}
}
评论列表: