I give up hehe. been looking over the form and the internet and couldnt find anything that worked.

what i want to do is simple. i have made a program that uses a MDI form (basicly a shell form that opens forms in it). and in the menu bar it has file then exit. I want it to close the shell when the person clicks the exit button but i dont know how to code that in.

does anyone have any ideas to help me

thanks,
cgcgames

nvm got it working XD. my uncl came in and i found so many things in all the other langauges just not C++ but eventrally i got it to work with the ::. which i should of relised lol :).

so it worked with

Application::Exit();

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.