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…dboitnott said 9 months, 3 weeks ago:
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.AnswerViewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
Ribbon for WinForms
Ribbon Form MdiChild Maximizes Without Control Box
- ComponentOne Ultimate
- Studio Enterprise
- Studio for WinForms
- Studio for WPF
- Studio for Silverlight
- Studio for Windows Phone
- Studio for ASP.NET Wijmo
- Studio for iPhone
- Studio for Entity Framework
- Studio for ActiveX
- Studio for Compact Framework
- Studio for WinRT XAML
- Studio for WinJS
- Spread Studio for .NET
- Spread for WinForms
- Spread for ASP.NET
- Spread WPF-Silverlight
- Spread WinRT
- Spread COM
- Wijmo - HTML5/jQuery
- Maps Powered by Esri
- Studio for LightSwitch
- OLAP for WinForms
- OLAP for Silverlight
- OLAP for LightSwitch
As a leading component vendor in the Microsoft Visual Studio Industry Partner program, ComponentOne has been providing the widest range of Microsoft Visual Studio components, IDE platform development tools, and applications for over 22 years. ComponentOne product lines encompass custom WinForms, ASP.NET, WPF, Silverlight, Mobile, and COM components, documentation tools, and Web Parts for Microsoft Office SharePoint Server and Windows SharePoint Services.
Contact ComponentOne: 1.800.858.2739 | Pittsburgh: 412.681.4343
©2013 ComponentOne LLC All Rights Reserved.
All product and company names herein may be trademarks of their respective owners.
ComponentOne holds a license under Patent No. 5,490,216 (which expires on September 21, 2013)