protected override void OnSelecting(TabControlCancelEventArgs e) { base.OnSelecting(e); // Do not allow selecting of disabled tabs if (e.Action == TabControlAction.Selecting && e.TabPage != null && !e.TabPage.Enabled){ e.Cancel = true; } }