المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : problem with windows application



C# Programming
08-12-2009, 03:37 PM
Hi,

I am working on a windows application involving MDI forms and child forms.
The problem here is when I click an item in the menu bar I am displaying a child form. the child form should be in such a way that it is displayed inside the MDI form and should not be like popup box.I have done this as shown below.


Childfrm.TopLevel=False;
this.Panel1.Controls.Add(Childfrm);
Childfrm.show();

it's working well but the controlbox with title bar is being displayed seperately in maximised mode.I want the control box beside MDI form menu and child form title beside mdi form title. A very good example of this functionality is Edit plus.

I request any one who worked on this type of requirement to help me in solving this problem
Thanks in advance