private void chkCustomJVMParam2Active_CheckedChanged(object sender, EventArgs e) { txtCustomJVMParam2.Enabled = chkCustomJVMParam2Active.Checked; if (txtCustomJVMParam2.Enabled) { txtCustomJVMParam2.Focus(); txtCustomJVMParam2.SelectAll(); } }