CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: opening a tab by code

  1. #1
    Join Date
    Apr 2010

    opening a tab by code

    hi guys

    i have a tabController which has 2 tabs, in tab_1 i have a button , i want to do sth if the user click on this button on tab_1 user automaticlly enter to tab_2.

    how to do that?

    tnx in advance

  2. #2
    Join Date
    Oct 2010

    Re: opening a tab by code

    Assuming default names the button code would look like:

            private void button1_Click(object sender, EventArgs e)
                tabControl1.SelectedTab = tabPage1;
    You should note that the tabControls and tabPages are seperate and have distinct properties. It all makes much more sense then.

    Hope it helps.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)