CheckBox Event
-
"Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup
anupamwb wrote:
what is the procedure ?
Here's the procedure:
- Visit MSDN
- Find the checkbox event to which you need to respond
- Determine the button's property that you need to change
- Write code to do that and stick in the event handler you discovered in step 2
/ravi
This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
-
"Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup
You'll want to set the
Enabled
property equal to theChecked
property. Do this in an event handler for the checkbox when the checked value is changed.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
-
"Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup
private void chkOptions_CheckedChanged(object sender, EventArgs e) { if (chkOptions.Checked == true) button1.Enable = true; else button1.Enable = false; }
Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...