Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
Hide (make invisible) a tab in a derived class
posted

Hello,

I have a base class with 2 tabs. And I want to hide one of them in a derived class. When I try to change to false the "visible" parameter in the proporties of the tab I want to hide in the derived class I recieve the follow message:

"Cannot modify or delete an object that was created on a base form".

how can I hide this tab only in the specific derived class (and live it in the base class)?

Thank you.

  • 6158
    Suggested Answer
    Offline posted

    Hello,

    Due to Visual Studio's inability to properly serialize complex collections, we often prevent the design-time manipulation of subitems from inherited controls on many of our controls. This includes (but not limited to) the UltraDockManager, UltraToolbarsManager, and UltraTabControl.

    You should be able to hide the tab programmatically in the derived form's Load or Shown event handler.

    Let me know if you have any further questions.

    Thanks,

    Chris