02
2012
04

超级链接的程序

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;

}
}
}
« 上一篇下一篇 »

评论列表:

真是经验,很实用,很好用,学习了!

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。