Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my code

C#
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
    #include "thehtmleditor.h"

               // This gets a new instance of our child window.
thehtmleditor* newMDIChild = new thehtmleditor();
// Tells our new child window
// what is our parent window.
newMDIChild->MdiParent = this;
// Shows the new form.
// Don't confuse this with ShowDialog!
newMDIChild->Show();
         }


this should add the form thehtmleditor to the mdi from in the this form, but It doesn't work for some reason can some one please help?
Posted

1 solution

what is happening then ? what error you got?
 
Share this answer
 
Comments
[no name] 30-Apr-12 18:18pm    
nothing happens, I get an error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900