"dawn" <dawn4715@hotmail.com> wrote in
news:Dzjlb.96854$pV6.4587617@phobos.telenet-ops.be:
[color=blue]
> Hi,
>
> I'm writing a Windows Form app, using c# (and believe me when I say
> I'm a newbie). The program needs two forms to functionate and I have
> to be able to write code that switches between the forms (i.e. the
> have to be co-existent and I need to change the Active Form). I launch
> the second form from the menu bar in the frst form.
> How can I make this second form "known" throughout the entire code, so
> that I can access (i.e. render active) it anywhere I like from within
> the code of form1.
> And how do I actually change the active form? I've tried using
> Form.Activate () but unless I'm doing something wrong (which
> undoubtedly is the case), it doesn't do what I want.
>
> Sample code would be greatly appreciated,
>
> Thanks,
>
> Bart.
>
>
>[/color]
Seems like what you really need is an MDI Application.
Have a look at the following article @msdn:
http://msdn.microsoft.com/library/en...plications.asp
--
best regards
Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at