コード例 #1
0
 private void textBox_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == System.Windows.Forms.Keys.Escape)
     {
         Dismissed = true;
         if (Subform != null)
         {
             Subform.UpdateVisibility();
         }
     }
     OnKeyDown(e);
 }
コード例 #2
0
 protected void MaybeLostFocus()
 {
     if ((Subform != null) && !Subform.GetExpectedVisibility())
     {
         Subform.UpdateVisibility();
     }
     if (!Focused && !textBox.Focused && !pnlButton.Focused && (Subform != null) && !Subform.Visible && borderDrawer.BorderColor != Oranikle.Studio.Controls.BorderDrawer.BORDER_UNFOCUS_COLOR)
     {
         borderDrawer.BorderColor = Oranikle.Studio.Controls.BorderDrawer.BORDER_UNFOCUS_COLOR;
         Invalidate();
     }
 }