private void cmbWinLoss_SelectedIndexChanged(object sender, EventArgs e) { if (cmbWinLoss.selectedvalue == "-") { cmbLossTo.Enabled = false; cmbLossReason.Enabled = false; txtDetailsLosRsn.Enabled = false; } else { cmbLossTo.Enabled = true; cmbLossReason.Enabled = true; txtDetailsLosRsn.Enabled = true; } }
private void cmbWinLoss_SelectedIndexChanged(object sender, EventArgs e) { cmbLossTo.Enabled = cmbLossReason.Enabled = txtDetailsLosRsn.Enabled = (! (cmbWinLoss.SelectedItem.ToString() == "-")); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)