private void chkJConsole_CheckedChanged(object sender, EventArgs e) { txtJConsolePort.Enabled = chkJConsole.Checked; if (txtJConsolePort.Enabled) { txtJConsolePort.Focus(); txtJConsolePort.SelectAll(); } }