<br><br><div class="gmail_quote">On 28 November 2010 21:06, robinsiebler <span dir="ltr">&lt;<a href="mailto:robinsiebler@321.net">robinsiebler@321.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
But then I still only have the data in the 2nd (child) form. How do I get it<br>
to the 1st (main) form?<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>The close handler of the second form has to pass it to the first form - or just set them as attributes on the second form and let the first form look at the values after control has returned to it. (Presumably the first form is responsible for showing the second form, so it already has a reference to it.)<br>
<br>All the best,<br><br>Michael<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5">
Michael Foord-3 wrote:<br>
&gt;<br>
&gt; On 28/11/2010 18:47, robinsiebler wrote:<br>
&gt;&gt; I have 2 forms, form a has a button that launches form b. Form b has 2<br>
&gt;&gt; textboxes and an OK button.  When the OK button is clicked, I want the<br>
&gt;&gt; form<br>
&gt;&gt; to close and the data to be returned to form a. How do I do this?<br>
&gt; One way is to show the second form modally (with a call to ShowDialog I<br>
&gt; believe), this will freeze the first form until the second form exits.<br>
&gt;<br>
&gt; Another way would be to hide the first form when the second one is<br>
&gt; shown. Give the second form a reference to the first one, and in the<br>
&gt; handler functions for the accept / cancel buttons for the second form<br>
&gt; re-show the first form.<br>
&gt;<br>
&gt; All the best,<br>
&gt;<br>
&gt; Michael<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; <a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br>
&gt;<br>
&gt; READ CAREFULLY. By accepting and reading this email you agree,<br>
&gt; on behalf of your employer, to release me from all obligations<br>
&gt; and waivers arising from any and all NON-NEGOTIATED agreements,<br>
&gt; licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap,<br>
&gt; confidentiality, non-disclosure, non-compete and acceptable use<br>
&gt; policies (”BOGUS AGREEMENTS”) that I have entered into with your<br>
&gt; employer, its partners, licensors, agents and assigns, in<br>
&gt; perpetuity, without prejudice to my ongoing rights and privileges.<br>
&gt; You further represent that you have the authority to release me<br>
&gt; from any BOGUS AGREEMENTS on behalf of your employer.<br>
&gt;<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
&gt; <a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
&gt;<br>
&gt;<br>
<br>
</div><font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/Returning-data-to-a-form-tp30325039p30325848.html" target="_blank">http://old.nabble.com/Returning-data-to-a-form-tp30325039p30325848.html</a><br>
</font><div><div></div><div class="h5">Sent from the IronPython mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.voidspace.org.uk">http://www.voidspace.org.uk</a><br><br><br>