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