Exemple #1
0
 private void frmMain_Deactivated(object sender, EventArgs e)
 {
     if (Form.ActiveForm == null)
     {
         FindReplace.CloseDialogIfNeeded();
     }
 }
Exemple #2
0
 protected override void OnKeyPressed(Keys keyData)
 {
     if (keyData.Equals(Keys.Escape))
     {
         FindReplace.CloseDialogIfNeeded();
     }
 }
Exemple #3
0
 protected override void OnKeyPressed(System.Windows.Forms.Keys keyData)
 {
     if (keyData.Equals(
             System.Windows.Forms.Keys.Escape))
     {
         FindReplace.CloseDialogIfNeeded();
     }
 }