winform中tabControl的标题隐藏

 

方法一:

Apperarance 属性:Faltbuttons
SizeMode属性:Fixed
各个TabPage的Text :空
ItemSize : Width=0;Height=1; //Height不能设为0

 

方法二:

private void Form1_Load(object sender, EventArgs e)
{
     tabControl1.Region = new Region(new RectangleF(this.tabPage1.Left, this.tabPage1.Top, 
           this.tabPage1.Width, this.tabPage1.Height));
}

 

参考:CSDN

 

posted @ 2019-02-25 17:41  quanzhan  阅读(2103)  评论(0编辑  收藏  举报