PDA

Click to See Complete Forum and Search --> : How to Set TabPage Visible to False


gRob_AndDerSon
Aug 9th, 2007, 10:26 PM
Hi peeps and to all members in this forum!!!

Is there a way that I can hide a certain TabPage(s) in a TabControl. Tabpage has no visble property???

Im using .Net Compact Frameork 2.0 using VS 2005..

jmcilhinney
Aug 12th, 2007, 04:15 AM
It's not possible. You have to remove the TabPage form the TabControl. What you might like to do is inherit the TabControl and add a property that is a collection of "invisible" TabPages. You could add a method to remove a TabPage from the control and add it to that collection. When you want it visible again you just add it back to the TabControl from that collection.

Pzykotik
Aug 14th, 2007, 10:08 AM
How stupid that it isn't available! I've been looking into this too, another solution is to use panels... By all accounts they have a visible property that can be set. I don't relly like panels myself so I'm still trying to find an alternative... jmcilhinney, how do you get around the problem?

Pzykotik
Aug 14th, 2007, 10:09 AM
Why can't you delete posts you've made... damn, this was an accidental repost!

jmcilhinney
Aug 14th, 2007, 06:06 PM
jmcilhinney, how do you get around the problem?Exactly as I said in my previous post.

Pzykotik
Aug 15th, 2007, 03:37 AM
I knew that =$