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

 

相关文章:

  • 2021-11-26
  • 2021-11-12
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2022-03-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
相关资源
相似解决方案