using System;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Test11
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
richTextBox1.Multiline = true;
richTextBox1.ScrollBars = RichTextBoxScrollBars.Vertical;
richTextBox1.Text = "欢迎登录 http://www.baidu.com编程体验网";
}
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e) //标识符已定义好
{
System.Diagnostics.Process.Start(e.LinkText); //识别出超链接,点击后可以访问
} private void richTextBox1_TextChanged(object sender, EventArgs e)
{ }
}
}