c# 隐藏Tab控件的标签

 public void HideTabcontrolLabel(TabControl tabControl1)
        {
            tabControl1.Appearance = TabAppearance.FlatButtons;
            tabControl1.SizeMode = TabSizeMode.Fixed;
            for (int i = 0; i < tabControl1.TabPages.Count; i++)
            {
                tabControl1.TabPages[i].Text = "";
            }
            tabControl1.ItemSize = new Size(0, 1);
        }

 

posted @ 2018-02-04 13:50  蛮哥哥  阅读(1304)  评论(0编辑  收藏  举报