Exemple #1
0
 //----------------------------------------------------------
 //函式名稱: tsmi_01_Click
 //說明: 右鍵功能表 [複製] CLICK事件
 //參數: 無
 //回傳值: 無
 //----------------------------------------------------------
 private void tsmi_01_Click(object sender, EventArgs e)
 {
     if (RTB_des.SelectedText.Length > 0)
     {
         RTB_des.Copy();
     }
 }
Exemple #2
0
 //----------------------------------------------------------
 //函式名稱:
 //說明: RichTextBox系列右鍵功能表 [全部選取] CLICK事件
 //參數: 無
 //回傳值: 無
 //----------------------------------------------------------
 private void tsmi_02_Click(object sender, EventArgs e)
 {
     RTB_des.SelectAll();
 }