c#隐藏tabcontrol选项卡

隐藏:Tab1.TabPage2.Parent = null;

显示:Tab1.TabPage2.Parent =Tab1;

tab1为tab控件名,TabPage2为选项卡名。