Esempio n. 1
0
 /// <summary>
 /// Event handler for key down of message textbox
 /// Check if Ctrl+A is pressed, if yes, select all and suppress beep
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void TxtMsg_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.A)
     {
         //Select all
         TxtMsg.SelectAll();
         //Suppress beep
         e.Handled          = true;
         e.SuppressKeyPress = true;
     }
 }