protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); // reset the titlebar highlight if it hasn't already this.FocusState = FocusStates.None; }