Private Sub TabControl1_Selected(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TabControlEventArgs) Handles TabControl1.Selected If TabControl1.SelectedTab Is TabPage2 Then TextBox2.Focus() End If End Sub