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

مشاهدة النسخة كاملة : C# MDI Forms layout [modified]



C# Programming
11-03-2009, 12:40 PM
Hi all!
I'm trying to build an MDI application with a fixed position left sidebar. On the right side I'd like to open other windows.

This is my problem.
When I open a child form, if I maximize it the form extends even under the side bar. The sidebar is now implemented with a panel anchored on top and bottom of the MDI main form (already set as an MDI container). The panel contains inside a treeview which links are used to open different child windows.
How can I make the sidebar panel a constrain for the MDI main form? So when I maximize a child form I can avoid child forms open partially behind the panel.

For those who know, as an example think about the layout of Oracle SQL Developer interface. The sidebar contains connections to databases and I've to do the same thing!

modified on Monday, November 2, 2009 10:41 AM