C# 选项卡tabControl子项tabPage的显示和隐藏

C# 选项卡tabControl子项tabPage的显示和隐藏



private void tabControlShowHide(bool OnOff)
{
if(OnOff == true)
{
tabPage2.Parent = tabControl;
}
else
{
tabPage2.Parent = null;
}

}

posted @ 2023-01-18 13:10  txwtech  阅读(755)  评论(0编辑  收藏  举报