public class MyTabControl : TabControl
{
public override Rectangle DisplayRectangle
{
get
{
if (showTabs)
{
return base.DisplayRectangle;
}
else
{
return new Rectangle(0, 0, Width, Height);
}
}
}
#region Properties
private bool showTabs = true;
[Category("Apparence"),
Description("Indique si les onglets s'affichent."),
DefaultValue(true)]
public bool ShowTabs
{
get { return showTabs; }
set
{
showTabs = value;
RecreateHandle();
}
}
#endregion
}
tabcontrol 控件 重新绘制 隐藏上面的标签
最新推荐文章于 2019-03-02 13:46:25 发布