C#tablecontrol隐藏标题2种方法

来源:互联网 发布:mac怎么切换输入法 编辑:程序博客网 时间:2024/06/05 06:07

方法一:

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


原创粉丝点击