HI,
I want enable false control enable true when select combo some values
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Dec 26, 2011, 11:31 PM EST
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
if(combobc1.Text.Length==0 || combobc1.Text=="Select")
{
textBox1.Enabled = false;
textBox2.Enabled = false;
}
else
{
textBox1.Enabled = true;
textBox2.Enabled = true;
}
}
Vikrant Jadhav64 reputationPosted Dec 26, 2011, 11:27 PM EST
shubhangi khandale55 reputationPosted Dec 26, 2011, 11:43 PM EST
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Dec 26, 2011, 11:45 PM EST
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
if(combobx1.Text=="Cash")
{
Do whatever
}
else if(combobx1.Text=="Cheque"))
{
Do whatever
}