Hi,
What if you keep a reference to the TabPage in an instance variable?
You could add/Remove it at needed.
Now a drawback of this is that you can only add it at the end of the
collection, there is no a InsertAt() method :(
Another posibility is to intercept the TabIndexChanged event and if revert
the selected tabpage.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Cynthia" <Cy*****@discus sions.microsoft .com> wrote in message
news:5E******** *************** ***********@mic rosoft.com...
I knew that "Hide" doesn't work with Tabpage if I want to hide it. I
should
use Remove/Add. But I have some other controls in the tabpage which I
don't
want to use code to dynamiclly create them. If I use remove to remove
that
tabpage and later use add to add it back in, I have to write code to
create
all the controls inside that tabpage, otherwise it will be a blank page.
What can I do to avoid it? Thank you for your time and help.