Connecting Tech Pros Worldwide Forums | Help | Site Map

passing forms

Lee
Guest
 
Posts: n/a
#1: Mar 11 '06
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



Morten Wennevik
Guest
 
Posts: n/a
#2: Mar 11 '06

re: passing forms


Hi Lee

A reference to form1 is passed, just the reference.



On Sat, 11 Mar 2006 09:06:34 +0100, Lee <lee__2k@hotmail.com> wrote:
[color=blue]
> 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
>
>
>[/color]



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