How do I hide a tab?

Hey guys, hopefully a fast and simple question here:

How do I hide a tab  (IPropertyManagerPageTab)  in my Property Manager Page (PMP) ?

I tried using

           ((IPropertyManagerPageControl)tab3).Visible = false;

but it says no such conversion is supported or something.

Here's a bit of a better explanation:

I have 3 tabs on my PMP: tab1, tab2, tab3.

Now I want the user to only be able to see / access tab 1.   Tabs 2 and 3 need to show up only when the user clicks a button on tab1 --> and that should automatically make tab 2 or tab 3 visible and send the user there  ( tab2.Activate()  ? ).

Even if there is no way for the tabs to be "hidden", is there at least a way to grey them out and make them unclickable ?

Thank you for your time,

Rumen

SolidworksApi macros