C# 隐藏TabControl标签

隐藏标签

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);

  

posted @ 2014-05-13 16:20  Faint@LastStep  阅读(181)  评论(0编辑  收藏  举报