private void tabs_Selecting(object sender, TabControlCancelEventArgs e) { if ((e.TabPageIndex!=3) && (TabDisable)) e.Cancel=true; }