| Author: Velkumar 30 Oct 2009 | Member Level: Silver | Rating:  Points: 2 |
Hi, First set the property of comboBox and textBox Enabled is to false
and the write the code given below
private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { comboBox1.Enabled = false; textBox1.Enabled = true; } else { comboBox1.Enabled = true; textBox1.Enabled = false; } }
|
| Author: Neetu 30 Oct 2009 | Member Level: Diamond | Rating:  Points: 2 |
Check the code.
private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) {
textBox1.Enabled = true; comboBox1.Enabled = false; } else { textBox1.Enabled = true; comboBox1.Enabled = true; }
}
regards Neetu
|
| Author: Deepika Haridas 30 Oct 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hello,
if(checkbox.checked) { combobox.enabled = false; textbox.enabled = true; }
Thanks & Regards, Deepika Editor
If U want to shine like a SUN..First U have to burn like the SUN!! Need a Guide? Join my mentor program..
|
| Author: zulkifli 30 Oct 2009 | Member Level: Bronze | Rating:  Points: 2 |
wow.... thank guys....
i have tried all of the coding and its works...
really appreciate...
|