using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class forn : Form
{
public forn()
{
InitializeComponent();
}
private void forn_Load(object sender, EventArgs e)
{
label1.Text = " ";
label2.Text = "下面是一个链接标签。单机可以连接入烟台大学!";
linkLabel1.Links.Add(0,4,"http://www.ytu.edu.cn");
}
private void button1_Click(object sender, EventArgs e)
{
String str = DateTime.Now.ToString();;
label1.Text = str;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
}
private void label2_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
}
}