Putting Controls on MDI Parent Window
-
I was wondering if anybody knew how to put controls such as (listview, and a monthcalendar) on a mdi parent window and have it stay behind the child forms that open. Because for space saving i was wanting to put these controls on the Main window(MDI Parent) for easy access when child windows weren't in front. But when I open a child window the controls on mdiparent overlap the child form. Is there a quick way to prevent this from happening. I'm sure there is> Thanks in advance
-
I was wondering if anybody knew how to put controls such as (listview, and a monthcalendar) on a mdi parent window and have it stay behind the child forms that open. Because for space saving i was wanting to put these controls on the Main window(MDI Parent) for easy access when child windows weren't in front. But when I open a child window the controls on mdiparent overlap the child form. Is there a quick way to prevent this from happening. I'm sure there is> Thanks in advance
There is no way to get the controls to be on top of the child windows, but you can change the size of the MDIClient area in the MDIParent form. This will allow you to put your controls on the Parent Form above the MDIClient area. It's buried and the documentation on changing this is non-existent because it involves classes and functions that are only meant to be used internally to the .NET Framework. I'll write something up when I get home tonight. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
There is no way to get the controls to be on top of the child windows, but you can change the size of the MDIClient area in the MDIParent form. This will allow you to put your controls on the Parent Form above the MDIClient area. It's buried and the documentation on changing this is non-existent because it involves classes and functions that are only meant to be used internally to the .NET Framework. I'll write something up when I get home tonight. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
What I'm trying to do , is not have them go on top of the child windows,as they will only be necessary when they are visible. It's having a main window with a listview and a calendar control on it, then when I open a child window I don't want those visible, currently when I open a child window, the Controls on the main window display on top of the child windows, and this is what i would like to prevent. Thanks , and I must say, when you go through the message board, you are one of the primary problem solvers, good job, and thanks.
-
What I'm trying to do , is not have them go on top of the child windows,as they will only be necessary when they are visible. It's having a main window with a listview and a calendar control on it, then when I open a child window I don't want those visible, currently when I open a child window, the Controls on the main window display on top of the child windows, and this is what i would like to prevent. Thanks , and I must say, when you go through the message board, you are one of the primary problem solvers, good job, and thanks.
I got you email with the images. It looks like the calendar control will take up a bunch of screen space. When you not using the controls, why not just set their Visible properties to False? Or, better yet, just display the controls in a modal dialog box when you need them and get any data you need from that? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
I got you email with the images. It looks like the calendar control will take up a bunch of screen space. When you not using the controls, why not just set their Visible properties to False? Or, better yet, just display the controls in a modal dialog box when you need them and get any data you need from that? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
The reason I was wanting to put those controls in the main window , is most people that i'm making this program for, only use 800 x 600 screen settings and opening a second child window takes up too much space inside the main window with my current program version. So figured if i put them on the back of the main window they'd always be visible if needed, and there when not needed. Thanks for your help, probably go with the visible property route, i had thought about that, but wasn't certain if this would be the best route.
-
The reason I was wanting to put those controls in the main window , is most people that i'm making this program for, only use 800 x 600 screen settings and opening a second child window takes up too much space inside the main window with my current program version. So figured if i put them on the back of the main window they'd always be visible if needed, and there when not needed. Thanks for your help, probably go with the visible property route, i had thought about that, but wasn't certain if this would be the best route.
Putting them on top of the Child windows would probably confuse them. Looking at other applications, the standard is to put controls that are used only once in a while onto a modal dialog form to get input like that. Just having a control pop up in the middle of their document would be confusing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Putting them on top of the Child windows would probably confuse them. Looking at other applications, the standard is to put controls that are used only once in a while onto a modal dialog form to get input like that. Just having a control pop up in the middle of their document would be confusing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
The thing is I'm not wanting the controls to show through the child window.. If you were to create a mdi window and throw some controls on it, then have a child window open inside that mdi window. The controls that you put on the mdi window show through the Child window, as if the the controls are infront of the child window you just opened. I was trying to prevent this, easily, but taking your suggestion. I'm setting the visibilty property of the controls that are on the main window to false when a mdi child window opens, and setting them back to true when the child window closes.