不清楚System.Diagnostics.Process.Start(e.LinkText); 的含义
1 using System; 2 using System.Data; 3 using System.Drawing; 4 using System.Text; 5 using System.Windows.Forms; 6 namespace Test11 7 { 8 public partial class Form1 : Form 9 { 10 public Form1() 11 { 12 InitializeComponent(); 13 } 14 private void Form1_Load(object sender, EventArgs e) 15 { 16 richTextBox1.Multiline = true; 17 richTextBox1.ScrollBars = RichTextBoxScrollBars.Vertical; 18 richTextBox1.Text = "欢迎登录 http://www.baidu.com编程体验网"; 19 } 20 private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e) //标识符已定义好 21 { 22 System.Diagnostics.Process.Start(e.LinkText); //识别出超链接,点击后可以访问 23 } 24 25 private void richTextBox1_TextChanged(object sender, EventArgs e) 26 { 27 28 } 29 } 30 }
实事求是,不自以为是