示例#1
0
文件: frmMain.cs 项目: wlads/ags
 private void frmMain_Deactivated(object sender, EventArgs e)
 {
     if (Form.ActiveForm == null)
     {
         FindReplace.CloseDialogIfNeeded();
     }
 }
示例#2
0
 protected override void OnKeyPressed(Keys keyData)
 {
     if (keyData.Equals(Keys.Escape))
     {
         FindReplace.CloseDialogIfNeeded();
     }
 }
示例#3
0
 protected override void OnKeyPressed(System.Windows.Forms.Keys keyData)
 {
     if (keyData.Equals(
             System.Windows.Forms.Keys.Escape))
     {
         FindReplace.CloseDialogIfNeeded();
     }
 }