D
dawn
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.
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.