How do I open forms in a tabbed windows form c#.Net

Posted on 2009-02-13
Last Modified: 2013-12-17
I have a main form which i have set it as "isMdiContainer = true" and I am opening other windows forms in it. I want to display the forms that are opened in a tabbed format, i.e. if i have 3 forms opened, i will have 3 tabs, one for each form.

An example of how i need to display the forms is shown in the picture below.

Any help please?

Question by:imaginecup
    1 Comment
    LVL 85

    Accepted Solution

    Then you don't really need an MDI container form...

    ...anyhoo, here is an example of opening up Form2 inside tabPage1.  Note the key here is setting the Forms TopLevel() Property to False:
            private void button1_Click(object sender, EventArgs e)
                Form2 f2 = new Form2();
                f2.FormBorderStyle = FormBorderStyle.None;
                f2.Dock = DockStyle.Fill;
                f2.TopLevel = false;

    Open in new window


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Cobalt Digital Marketing began using the Scrum Framework development process in summer 2009.  We hired a consultant to train the teams, observe meetings, and answer questions. He recommended that we begin using one-week sprints for several reason…
    You can provide a virtual interface for remote stakeholders in a SWOT analysis through a Google Drawing template. By making real time viewing and collaboration possible, your team can build a stronger product.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    728 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

    15 Experts available now in Live!

    Get 1:1 Help Now