Tag: Deb object initial OID har BSP tar color void
TabControl control, sometimes need to dynamically display one or more tabs, if you just display a tab, do not want to display the label header, it is possible to hide the needs of the head.
The following code can be implemented
public Form1 () {InitializeComponent (); _tabcontrolitemsize = tabcontrol1.itemsize; _tabcontrolappearance = tabcontrol1.appearance; _tabsizemode = Tabcontrol1.sizemode; private void showbutton_click (object sender, EventArgs e) { Tabcontrol1.itemsize = _tabcontrolitemsize; Tabcontrol1.appearance = _tabcontrolappearance; Tabcontrol1.sizemode = _tabsizemode; private void hidebutton_click (object sender, EventArgs e) { Tabcontrol1.itemsize = new Size (0, 1); Tabcontrol1.appearance = tabappearance.flatbuttons; Tabcontrol1.sizemode = tabsizemode.fixed; } private Size _tabcontrolitemsize; Private Tabappearance _tabcontrolappearance; Private Tabsizemode _tabsizemode;//If this value is not set, the effect is another effect
C # TabControl Hide tag header (TabControl hide head)