示例#1
0
 /// <summary>
 /// Handles the <see cref="E:KeyDown" /> event.
 /// </summary>
 /// <param name="Obj">The object.</param>
 /// <param name="e">The <see cref="KeyEventArgs"/> instance containing the event data.</param>
 protected void OnKeyDown(object Obj, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.A)
     {
         LollipopTB.SelectAll();
         e.SuppressKeyPress = true;
     }
     if (e.Control && e.KeyCode == Keys.C)
     {
         LollipopTB.Copy();
         e.SuppressKeyPress = true;
     }
     if (e.Control && e.KeyCode == Keys.X)
     {
         LollipopTB.Cut();
         e.SuppressKeyPress = true;
     }
 }