I have developed a Windows Desktop Application with a MDI Container form which will open first. This MDI form houses many child forms as part of its Menu. On the click event of this menu items I have written the following code.
Masters.frmCustomer objCUST = new Masters.frmCustomer();
//objCUST.MdiParent = this;
My problem is when I am executing the application with the second statement commented, the child form opens perfectly OK (in its own original shape). Bust as I un-comment the second statement the child form appears fully stretched inside the parent window - dis-forming the form structure. So please suggest me a solution where I can maintain the proper structure of the opening child forms inside the MDI window.
I am using VC# 2010.