How to set a specific tab to visable = false or enabled = false in 2005

Posted on 2007-08-05
Last Modified: 2013-11-26

I have a tab control and a checkbox. The tab control has 2 tabs. I would like to know if I check the checkbox how to disable the second tab or set visible to false for the second tab please.

Many Thanks
Question by:ljhodgett
    LVL 46

    Accepted Solution

    Hello Lee,

    You can't make it invisible, but you can remove it, and save it in a variable so you can add it back later....

        Private MyTabControlPage As TabPage

        Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
            If MyTabControlPage Is Nothing Then MyTabControlPage = TabControl1.TabPages(1)
            If CheckBox1.Checked Then
            End If
        End Sub


    LVL 69

    Expert Comment

    by:Éric Moreau

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now