I have parent form(A) which calls another form(B). I would like to use a
value from a row in a data grid on the parent form(A), in the code of my
called form(B). What is the best way to handle this.

Thanks,


Will

Re: using values from a parent form? by Matt

Matt
Fri Apr 23 00:31:54 CDT 2004

Hello Willie,

> I have parent form(A) which calls another form(B). I would like to use
> a value from a row in a data grid on the parent form(A), in the code
> of my called form(B). What is the best way to handle this.

Create a property accessor on form(B) and call that in the code from form(A).

--
Matt Berther
http://www.mattberther.com

Re: using values from a parent form? by Morten

Morten
Fri Apr 23 00:58:37 CDT 2004

Please don't multipost. If any, use crosspost, and preferably not even
that.
I answered your post in the forms.control group (assuming I understood
your problem correctly in that the datagrid is on form(A). If it is on
form(B), do as Matt said and put a property on form(B) that form(A) can
use)

Happy coding!
Morten Wennevik [C# MVP]