您的位置:首页 > 其它

不清楚System.Diagnostics.Process.Start(e.LinkText); 的含义

2015-11-11 16:07 330 查看
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)
{

}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: