Exemple #1
0
 private void txtComment_KeyDown(object sender, KeyEventArgs e)
 {
     if (((e.KeyCode == Keys.Enter) && (e.Modifiers != Keys.None)) || (e.KeyCode == Keys.Escape))
     {
         shape.HideEditor( );
     }
 }
Exemple #2
0
 private void txtComment_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter && e.Modifiers != Keys.None ||
         e.KeyCode == Keys.Escape)
     {
         shape.HideEditor();
     }
 }