private void SelectChildControlOfTabPage(object sender) { TabControl tab = (TabControl)sender; TabPage p = tab.TabPages[tab.SelectedIndex]; Control ctl = p.GetChildAtPoint(new Point(p.Width / 2, p.Height / 2)); if ((ctl != null) && (ctl.Enabled)) { ctl.Focus(); } }