• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 641
  • Last Modified:

Theoretical Problem with MDI Child/Parent Form

I have an application for which I have developed a dynamic user permissions based menu system. The menu system uses a tabcontrol and listview boxes to categories and display images and menu items for the app.

I want this to be visible underneath my sub forms all the time.

I am currently using MDI, since I like the container effect.

Obviously, I can't put the menu on my MDIparent, since then it appears on top of my subforms. (I even tried manually bringing the MDIClient to the front, but then it covers up my menu.)

I tried setting it as a MDI child, but it's not a fixed position, and it's not always at the back of the other open forms.

I know there's a way to do this, and I'm open to suggestions.  -- except "why not just use a regular menu bar?" answer: because I like the way this one looks. :)

Thanks in advance
0
VeeVan
Asked:
VeeVan
  • 4
  • 4
  • 2
  • +1
1 Solution
 
gemailjCommented:
you want to make menus like office menus
these menus is called ribbon menu controls
there are some component which contains these ribbon menus

http://www.devexpress.com/Products/NET/Controls/WinForms/Bars/index.xml

i hope that this helps you
i use it i was wonderful controls, i hope that is what you need
0
 
VeeVanAuthor Commented:
Nope. It's not a ribbon style bar. I'm using a tab control and that contains my graphics which take up the entire background of the page. Please see this website for an example of what I'm doing. Mine looks the same as this:

www.safechoice.com/fund-accounting/

Thanks.
Veronica

0
 
PlatoConsultantCommented:
what i have done i placed the the header in the MDIParent form in a panel, it will be visible and childs will be open bellow them.


0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
PlatoConsultantCommented:
MDI menu Merge is a technique u can try to merge the parent and child menus
0
 
CodeCruiserCommented:
Can you show us some screenshots?
0
 
VeeVanAuthor Commented:
Here's a screenshot of what I'm trying to do. You can also look at the link above at their program which is also a picture of what i'm looking to do:

I want this menu screen to make up the background of my main MDI form. I want it to stay there all the time, but be in the background if I open another form (like an input form) on top of it. I don't want the input form to be able to stray outside the boundaries of the main form. (I want the input forms to be MDIchildren.)


menucapture.png
0
 
CodeCruiserCommented:
You want the left side menu to remain visible at all times while the right side bigger area is populated by different forms? Panels are more suitable in such a scenario.
0
 
VeeVanAuthor Commented:
Sorry. I don't think my question is totally clear.

This form functions correctly by itself. When i click on the left hand side, my images appear correctly. The icons in there are menu icons. When I double click on one of those, I want a new form to open on top of this menu (or menuform).

I have a mainform which is an MDIcontainer. The MDI container form does NOT have a traditional toolbar menu on it. The image that I uploaded is my application's navigation menu.

If I put this menu directly on the background of my MDIcontainer form, none of my MDI children show up, since the MDIclient control is behind any controls that you put on the MDIcontainer form.

If I make this form itself an MDI child, then it can appear in FRONT of other MDI child forms that it's opening. (I want them to be able to open multiple forms at once.)

I want this menu (or menuform) to be always at the back of my other forms. I want other forms; i.e. input forms, reports, etc to appear ON TOP of this form. And always be on top of this menuform. I also don't want it to be changed if other MDI child forms are minimized and/or maximized. Additionally, I want my other forms that open to be constrained by the MDI container form. (just like a regular mdichild.)

So: I don't think that setting up this menuform as an MDIchild form will work, and for the obvious reasons putting the menu directly on the MDIcontainer won't work.

I am looking for a workaround of some type.

Thanks.
Vee
0
 
CodeCruiserCommented:
>And always be on top of this menuform.
How would the user then open multiple forms?
I think the solution is to use an mdichild form to host this menu. If another form is opened, that form can be set to be on top of this menu form. If the user wants to go back to menu form then some sort of button/shortcut on the mdiparent can bring the menu form to front.

0
 
VeeVanAuthor Commented:
>How would the user then open multiple forms?

They would be able to open multiple forms, since many of the forms that are opening are much smaller than the main MDI container and they are never maximized.

In effect, I want the menuform to be "locked" to the center of the MDI container form.
0
 
CodeCruiserCommented:
That wont be possible. You have the conditions which make it dificult to work. May be you can make the form separate and show on top of the mdi.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now