How to select the value in child form X when closing parent form Y?+1
<p>Here is the part of a custom winform class: </p>

<pre><code>public partial class frmFindAppointments {
    public virtual void Init(int patientId, bool booleanValue) {
        // will receive the patientId
    }

    public delegate void goToCalendarHandler();
    public goToCalendarHandler goToCalendar;
}
</code></pre>

<p>In the parent window <code>y</code>, I added the name of an employer, and I want to get this selected in the child window <code>x</code> when I close the parent window <code>y</code>.</p>

<p>I tried with</p>

<pre><code>using(frmFindAppointments frm=new frmFindAppointments()) {
    frm.goToCalendar+=new frmFindAppointments.goToCalendarHandler(GoToCalendar);
    frm.Init(Patient.Id, false);
    frm.ShowDialog(this);
}
</code></pre>
