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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pravin GhadgePosted Dec 27, 2011, 4:31 AM
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;
}
}
Pravin GhadgePosted Dec 27, 2011, 4:45 AM
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
if(combobx1.Text=="Cash")
{
Do whatever
}
else if(combobx1.Text=="Cheque"))
{
Do whatever
}
shubhangi khandalePosted Dec 27, 2011, 4:43 AM
Vikrant JadhavPosted Dec 27, 2011, 4:27 AM