-1

I have 3 tabsControl in the project from the 1st tab on a button_click even how can i get to tab 3.

private void Button_Click(object sender, EventArgs e)
    {
        //tab Control name is TabControl1
        //tabs ONE,TWO, THREE
         TabControl1.??
    }

thanks

user1445894
  • 47
  • 1
  • 1
  • 5

1 Answers1

0

Do you mean you want to switch to Tab3 when Button is pressed?

    private void Button_Click(object sender, EventArgs e)
    {
        TabControl1.SelectedIndex = 2; // switch to Tab3
    }
Idle_Mind
  • 38,363
  • 3
  • 29
  • 40