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
2715
null refference when setting tabs as invisible
posted

Hi!

I have an ultraTab control, and based on a permission system i set all tabs to visible = false programatically like this :

tabcontrol.tabs["tab1"].visible = false;

tabcontrol.tabs["tab2"].visible = false;

....

tabcontrol.tabs["tabn"].visible = false;

The problem is that the last line allways throws an exception - null refference.

Any ideea why? The only other things i personalized to my control are the colors and the tab headers to multirow.

Thanks!

Parents
No Data
Reply
  • 12480
    Offline posted

    Hello Marius,

    I have built a small sample using the UltraTabControl. I added a few tabs in the designer, then disabled their visibility programatically. If you could modify the sample, or build a new sample, it would help me in identifying the source of this issue. Thanks.

    ProgrammaticTabs.zip
Children