Some people cry but some people try ...... P & Q

디자이너 속성에서는 다룰 수 없어.

탭 컨트롤러에서 동적으로 제거해라!

  • The tabPage.Enabled seems to be working fine, but is marked as "not to be used":

    This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
    This member is not meaningful for this control.

    So you should disable the tab page by disabling every control in the tab. See this for instance.

  • Show / hide

    There is an existing tabPage.Visible property but it does not seem to have any effect. Besides, it is also marked as "not to be used", and msdn advises to remove the tab page from the tab control in order to hide it:

    // Hide the tab page
    // Show the tab page (insert it to the correct position)
    tabControl.TabPages.Insert(0, tabPage1);

Comment +0