protected override void OnRefreshChanges() { if (this.DockPaneCaption.DockPane.DockPanel != null) { if (this.DockPaneCaption.TextColor != ForeColor) { ForeColor = this.DockPaneCaption.TextColor; Invalidate(); } } }