private void chkCustomJVMParam1Active_CheckedChanged(object sender, EventArgs e) { txtCustomJVMParam1.Enabled = chkCustomJVMParam1Active.Checked; if (txtCustomJVMParam1.Enabled) { txtCustomJVMParam1.Focus(); txtCustomJVMParam1.SelectAll(); } }