assuming there is only one child window, and if you want more than one. Typically one might think to use a destructor such as ~form(); however, in big programs there are many forms, and more then one kind of form can be active, ex: form1, form10, so destructors dont apply here, just need to know how you close the active child window which is a extremely simple request.

Thanks

never mind, i just figured it out thanks anyways, it was ActiveMdiChild->Close();

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.