Hi!
Go to your Tab panel Events, and choose SelectedIndexChanged.
Double click, and now you are in:
private void TabControl1_SelectedIndexChanged(Object sender, EventArgs e) {
if(tabPanel.SelectedIndex == 1)
{
textBox.Select();
}
}
Otherwise, you can use the
SelectedTab property of Tab panel, that return you a TabPage, and then you can check by name:
tabPanel.SelectedTab.Name == "Second Tab";