I am using a C1RibbonForm as an Mdi Container, and the MdiChildren are standard Windows Forms. When I maximize an MdiChild, it loses its control box (the minimize, maximize and close buttons). I have a second application that is identical to this one (at least in basic structure) and it does not suffer this problem.
So clearly there is something happening that is causing the control box to disappear. Can anyone offer guidance as to what I should be looking for? There are no exceptions being shown in the debug output. If it’s happening, someone is consuming it quietly.
I welcome any advice that can be offered.
I have attached a cropped screen shot showing the upper-right corner of my C1RibbonForm, which has a maximized child form in it, just to highlight the missing controls.
I’m unable to reproduce this problem, sorry. That’s something strange. Could you please try to create a copy of the form suitable for testing (without business logic) that still shows the issue?
Thanks in advance.
I would not be able to reproduce it either. As I said, I have another project that does include its own business logic, which does not exhibit the problem.
What I am asking for (and I realize the difficulty) is some idea of what C1RibbonForm does when a child is maximized. I believe I have read other posts that suggest that it is drawn internally, and is not the "stock windows" control box being displayed. If that is true, then what is C1RibbonForm doing, specifically? I need a jumping-off point so I can evaluate my code to see what I might be doing to break C1RibbonForm’s drawing of those control buttons.
C1RibbonForm suppresses showing the "stock windows" control box and forces the C1Ribbon control to display three special buttons to the right of the ConfigToolBar. The buttons may not appear if the C1Ribbon control doesn’t belong to C1RibbonForm directly (for example, if you added a Panel control with Dock = Fill, then put the C1Ribbon control to that Panel). It’s easy to test. Are you able to see the Quick Access Toolbar in the window title (see the attached image)?
I do not see the Quick Access (see attached screen shot).
Honestly I don’t recall how I created the form to begin with, but there are no layers between the Ribbon and the RibbonForm. However, I suspect that perhaps I used the default form when the new project was created, and simply changed its inheritance to RibbonForm and then added a ribbon to it.
Could that have caused this? If so, what might I do to the form to fix it?
Your Form looks correct (there is a drop-down in the window title).
> However, I suspect that perhaps I used the default form when the new project
> was created, and simply changed its inheritance to RibbonForm and then
> added a ribbon to it.
That’s the correct way to create a form with C1Ribbon.
I have no ideas what may cause the issue…
I discovered the problem: my form code overrides the OnMdiChildActivate event so that it can keep track of what MDI children are present. In this event, I was not passing through to base.OnMdiChildActivate(). This lack of a base call was preventing the control box from being drawn.Answer
You must be logged in to reply to this topic.