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 }

 

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-09-07
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-17
  • 2021-08-06
  • 2021-08-23
  • 2021-05-09
  • 2021-07-12
相关资源
相似解决方案