Author: nimish | Posted on: 11/23/2009 8:53:05 AM | Views : 251

I have a long form which consists of a checkbox on top.  Then I decided to have second one at the bottom as well.
Both boxes serve the same purpose.  So the user can check the top box or the bottom box - the state of both checkboxes should be change and remain same.

How can I do this?  I wrote code under CheckedChanged event for both controls but it becomes cyclic and doesnt work as intended.  Setting checked property to true invokes the other box's CheckedChanged event.
Below is snippet from First box's CheckedChanged event.
if (CheckBoxInternational.Checked) { CheckBoxInternational2.Checked = true; } else { CheckBoxInternational2.Checked = false; }
Below is snippet from second box's CheckedChanged event.
...

Go to the complete details ...