Results 1 to 5 of 5

Thread: how to make tabpages visible=false in vb.net

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    37

    how to make tabpages visible=false in vb.net

    hi

    plz tell me how can i make the tabpages visible = false. iam using vb.net 2005.
    its very urgent . please help me.

    thanking you all
    asra

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

    Re: how to make tabpages visible=false in vb.net

    It's not possible. If a TabPage is in the TabPages collection then it's visible. If you son't want it visible then you have to remove it from the TabControl's TabPages collection. You can Add or Insert it back again later if you want it visible again.
    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

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    37

    Re: how to make tabpages visible=false in vb.net

    Quote Originally Posted by jmcilhinney
    It's not possible. If a TabPage is in the TabPages collection then it's visible. If you son't want it visible then you have to remove it from the TabControl's TabPages collection. You can Add or Insert it back again later if you want it visible again.
    thnx for ur reply
    here in my project , a have a next button. upon the click of next button a tabpage should be get added. this next button is out side the tabcontrol. i have to add 4 tab pages upon the click of this next button. how can i do this plz help me.

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

    Re: how to make tabpages visible=false in vb.net

    The TabControl has a TabPages property that is a collection containing the TabPages. It has Add and Insert methods, plus it has Remove and RemoveAt methods. Their names pretty much speak for themselves as to the purpose of each method but if you want clarification then you should read the MSDN help topic for each one. Start at the topic for the TabControl and follow the appropriate links.
    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

  5. #5
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: how to make tabpages visible=false in vb.net

    Quote Originally Posted by asra
    thnx for ur reply
    here in my project , a have a next button. upon the click of next button a tabpage should be get added. this next button is out side the tabcontrol. i have to add 4 tab pages upon the click of this next button. how can i do this plz help me.
    Hi,

    You can try something like this:

    Code:
            Dim TabPage1 As New TabPage
            Dim TabPage2 As New TabPage
            Dim TabPage3 As New TabPage
            Dim TabPage4 As New TabPage
            ' Gets the controls collection for tabControl1.
            ' Adds the new tabPage to this collection.
            Me.TabControl1.TabPages.Add(TabPage1)
            Me.TabControl1.TabPages.Add(TabPage2)
            Me.TabControl1.TabPages.Add(TabPage3)
            Me.TabControl1.TabPages.Add(TabPage4)
    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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