Making Shallow Copy of FORM
<p>I want to make a shallow copy of a populated form so if user select checkboxes and presses close instead of save button then i want to replace the "scheduleform" with the checkboxes with shallow copy form "scheduleform2" which is empty. But the problem is when changes are made in "scheduleform" then somehow they appear in "scheduleform2" and because of that i end up with same form data. For Example when a checkbox is checked in "scheduleform" the change appear in "scheduleform2" despite making it a shallowcopy. </p>

<pre><code>DefaultScheduleForm scheduleForm2 = new DefaultScheduleForm();

public DefaultScheduleForm ShallowCopy()
{
  return (DefaultScheduleForm)this.MemberwiseClone();
}

scheduleForm2 = scheduleForm.ShallowCopy();

scheduleForm = scheduleForm2;
</code></pre>
