Results 1 to 6 of 6

Thread: How to Set TabPage Visible to False

  1. #1

    Thread Starter
    Junior Member gRob_AndDerSon's Avatar
    Join Date
    Jun 2007
    Location
    Philippines
    Posts
    31

    Question How to Set TabPage Visible to False

    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..
    VB.Net Version : 2005
    .Net Version : 2.0
    OS : Windows XP SP2

    -------------------------
    ALways be COOL

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to Set TabPage Visible to False

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Member
    Join Date
    Aug 2007
    Location
    Nottingham
    Posts
    53

    Re: How to Set TabPage Visible to False

    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?

  4. #4
    Member
    Join Date
    Aug 2007
    Location
    Nottingham
    Posts
    53

    Re: How to Set TabPage Visible to False

    Why can't you delete posts you've made... damn, this was an accidental repost!
    Last edited by Pzykotik; Aug 14th, 2007 at 10:13 AM.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to Set TabPage Visible to False

    Quote Originally Posted by Pzykotik
    jmcilhinney, how do you get around the problem?
    Exactly as I said in my previous post.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    Member
    Join Date
    Aug 2007
    Location
    Nottingham
    Posts
    53

    Re: How to Set TabPage Visible to False

    I knew that =$

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width