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

猜你喜欢

转载自www.cnblogs.com/code1992/p/10432242.html