MenuStrip Action Function

Hey there

I'm very new to this and may (most probably) got a few things wrong, but I'm doing the best I can so far.

I have two forms right now. When I build the program everything runs fine, although I have added a MenuStrip at the top of the program window, but was wondering how I link the first form with the second form.

In other words, I wish the program to behave as thus: When you click on one of the buttons in the MenuStrip, It opens up a new window (the second form).


As I said, I'm very new to this.. hell this is my second day of experimenting.. and I would be very appreciative of any help

Thanks
Last edited on
Did you jump straight in with windows programming?

I would suggest you start with C++ and such.

However, knowing the most common personality of site visitors, the command you are looking for isCreateProcess(/*A whole bunch of arguments*/).

Look it up on Microsoft's website, see what people have found out about it, and use it to your advantage.

Don't forget to #define WIN32_LEAN_AND_MEAN .
Thanks for your help, I'll check it out in the morning -yawn-

But yeah! I'm using C++ atm.. I usually jump right into the deep end with everything and learn to swim on the way.. infact I've learned more today just experimenting and playing around, than following some tutorial... but this specific command has alluded me for some time

Just a question though:
Where specifically would I put it into the code?

Right now, as it stands on the MenuStrip I have this:

1
2
3
4
5
			this->newSpeciesToolStripMenuItem->CheckOnClick = true;
			this->newSpeciesToolStripMenuItem->Name = L"newSpeciesToolStripMenuItem";
			this->newSpeciesToolStripMenuItem->Size = System::Drawing::Size(83, 17);
			this->newSpeciesToolStripMenuItem->Text = L"New Species";
			this->newSpeciesToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::Species_Load);


I had originally hoped that the following code:
this->newSpeciesToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::Species_Load);
Would open Species.h (in a new window) when clicked

I really need a sort of template, which to replicate for future reference
Thanks again
Topic archived. No new replies allowed.