Home All Groups Group Topic Archive Search About
Author
11 Mar 2006 8:06 AM
Lee
hi,

when passing a form to something, for instance another form e.g.

form2 = new Form2(form1);

what is passed exactly? is it a reference or a value?

thanks

Author
11 Mar 2006 10:19 AM
Morten Wennevik
Hi Lee

A reference to form1 is passed, just the reference.



On Sat, 11 Mar 2006 09:06:34 +0100, Lee <lee_***@hotmail.com> wrote:

Show quoteHide quote
> hi,
>
> when passing a form to something, for instance another form e.g.
>
> form2 = new Form2(form1);
>
> what is passed exactly? is it a reference or a value?
>
> thanks
>
>
>



--
Happy coding!
Morten Wennevik [C# MVP]

Bookmark and Share