隐藏标签
tabControl.SizeMode = TabSizeMode.Fixed; tabControl.Appearance = TabAppearance.FlatButtons; tabControl.ItemSize = new Size(0, 1);
切换标签
foreach (TabPage tp in tabControl.TabPages) { tabControl.TabPages.Remove(tp); } tabControl.TabPages.Add(tabPage1);