red60mans wrote:
How do i access Form1 from Form2 without creating a new instance of Form1??
You can't create a new instance, it won't access the old one. The Application object does have a collection of open forms, you could find it there. You could also pass it in, as has been suggested. You could use a delegate to make Form2 tell form1 to wake up. Your best bet IMO is still to create both forms as controls, and embedd them on the one form.
red60mans wrote:
where do i create those controls??
You create new user controls, and design them the same as you would a form. Then you put both controls on your form, and write some plumbing code to make sure one or the other is always visible.
red60mans wrote:
So do i need to create these forms as controls in main()??
You'd create them as controls in the designer, and then add them to your form
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog