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);
 }
 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();
     }
 }