不清楚System.Diagnostics.Process.Start(e.LinkText); 的含義,systemdiagnostics
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 }