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