Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two checkboxes. I want to fire the checkedchange event of second checkbox on the checkdedChange of first checkbox.
Posted
Comments
Toli Cuturicu 21-Aug-10 3:46am    
Ok

1 solution

Why do you propose to do that? The only sensible way to do that is to change the Checked status of the second CheckBox in the event handler for the first. Note that this may require a real change: true <->false rather than "myCheckBox.Checked = true;" as the changed event may not fire if the Checked state is true before you set it to true.

The better way would be to put the relevant code into a separate method you can call from both handlers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900