Displaying a second form with a Windows Form Application project

I'm currently working on making an application using Windows Form Application. I'm pretty new to this, and don't know all the ins and outs yet. I'm trying to set up my menu system, and ran into a snag.I got the file>exit menu item to work, but now I'm working on the about menu item. I created a second form to use here, however I have no idea how to initialize it. I tried #include "Form2.h" so that I could use Form2::ShowDialog();but that just gave me a ton of redefine errors. Can anyone tell me how to get these forms to interact properly?


Update: After revising my Form2 I figured out how to make the #include "Form2.h" work and have them linked properly now. However, when I try to use Form2::ShowDialog(); I get an error that tells me Form2 is not a class. Now, I found a few tutorials on this and they all mention making a handle and using gcnew, but that's a little over my head. How should I declare this?
Last edited on
Topic archived. No new replies allowed.