Click here to Skip to main content
15,921,382 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello,

I have develop a form with borderstyle None.I want that form to be used inside a Parent form.But the problem is I can create the child form inside MDI form but it can't arranged in any way using the MdiLayout properties .So pls help me


Thanks
Regards
Posted
Comments
42ka1 2-Aug-11 8:36am    
I want to develop a sliding type form in which client area will be hide if a button will be clicked and will be shown if it clicked again.That's why I make the border of the form None and place a panel at the top most position which will be seem like a title bar and above that I have placed the button.This form will be used as child form inside a MDI form.But the problem is it can't be arraged in any way.

Your problem is that your form has no border, and therefore doesn't receive the layout events. Set the border style back to a normal border, and it will work.
 
Share this answer
 
Comments
42ka1 3-Aug-11 1:26am    
I want to develop a sliding type form in which client area will be hide if a button will be clicked and will be shown if it clicked again.That's why I make the border of the form None and place a panel at the top most position which will be seem like a title bar and above that I have placed the button.This form will be used as child form inside a MDI form.But the problem is it can't be arraged in any way.
What are you trying to do?

have you looked at the dock, left, Top, height, width properties in the form?

If these dont help please expand on your question and we'll try to help more
 
Share this answer
 
Listen to a good friendly advice: don't torture yourself and don't chase out your customers with MDI. This type of UI is highly discouraged and is never used in any reasonable professional UI. SDI with docking or tabbed UI is much more convenient and easier to implement.

See:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

—SA
 
Share this answer
 

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