Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6909435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:41:20+00:00 2026-05-27T08:41:20+00:00

Hello I’m thinking of creating a tabcontrol which the tabpages will be filtered by

  • 0

Hello I’m thinking of creating a tabcontrol which the tabpages will be filtered by the clicks in the menustrip.

For ex.

My menustrip is in form 1
and my tabcontrol is in form 2

My tabcontrol consist of 7 tabs and I want only 1 tab will be shown at a time.

for example If I click the name in the menustrip it will open/show a new form and the tabcontrol will only show the names tab.

I wonder if its possible because making diff forms for each list seems to be very long.

thanks for reading this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:41:21+00:00Added an answer on May 27, 2026 at 8:41 am

    Problem is, the TabPage control has no Visible property (well, it has, but it does nothing). So you can’t hide and show tabs at will. You’ll have to remove the tabs that should not be visible.

    You could make a form (named TabbedForm) with code like this:

    private readonly int _index;
    
    public TabbedForm(int index)
    {
      this._index = index;
      InitializeComponent();
    }
    
    private void form_Load(object sender, EventArgs e)
    {
      for (int index = this.tabControl1.TabPages.Count - 1; index >= 0; index--)
      {
        if (index != this._index)
          this.tabControl1.TabPages.Remove(this.tabControl1.TabPages[index]);
      }
    }
    

    With each menu button (Clicked event) in your main form you can open a TabbedForm with a different index.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello can anybody solve this please I'm creating the object in the action class
hello friends i am trying to get a list of user id and want
Hello ever one I want to ask a question about file opening.I want to
hello creating a custom object may be a widely published topic, but my lack
Hello fellow developers... just to make sure, I want to ask this question: How
Hello, Im working on a solution for Android that will record calls (both out
hello i wanted to build I get $date and $date1 from form xxx. I
Hello I want to convert a PDF file to text file. I am converting
Hello good morning everyone, i have an iphone app which is still in development

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.