MaterialSkin Winforms tabcontrol问题

时间:2018-01-16 20:26:35

标签: c# winforms material

我正在使用带有MaterialSkin参考的Windows窗体 当我尝试删除制表符时:

postavkeTab.BaseTabControl.TabPages.Remove(tabPage11);

postavkeTab == MaterialSkin.Controls.MaterialTabSelector

并且作为MaterialSkin.Controls.MaterialTabControl绑定到“mtcMain” properties of Tab Selector

我收到错误

error in form where I show main (Home) form

1 个答案:

答案 0 :(得分:0)

for(i=0;i<postavkeTab.BaseTabControl.TabPages.Count;i++){
    postavkeTab.BaseTabControl.TabPages[i].TabIndex = i;
}

删除TabPage后添加此代码