Giter VIP home page Giter VIP logo

Comments (7)

harborsiem avatar harborsiem commented on May 30, 2024

Hi Roland,
I think the problem is the code
newMDIChild.WindowState = FormWindowState.Maximized;
You should use this code instead
Size s = new Size(this.ClientSize.Width - 8, this.ClientSize.Height - _ribbon.Height - 8); newMDIChild.Size = s;
Your MDI Child should not have a Maximimized Button

Regards
Hartmut

from windowsribbon.

RoBeDi avatar RoBeDi commented on May 30, 2024

Hi,

Thanks for coming back to me. Using your code did improve a little, but when clicking on Home tab page it appeared again.
image

When resizing the ribbon, the issue disappeared. But came back after clicking any of the tab pages.

Behavior:

  1. Once project started, no visible issues
  2. No issues when I drag it to another monitor
  3. Clicking between the second and third tab page will resolve the view, but clicking File makes the issue comes back
  4. Minimizing and maximizing the ribbon will solve the issue as well

Weird thing is that it only occurs whenever I click the File tab page.

from windowsribbon.

harborsiem avatar harborsiem commented on May 30, 2024

Hi,

I think you do maximize the mdi form in an event. Only if I do this in a test, I can reproduce your view.

from windowsribbon.

RoBeDi avatar RoBeDi commented on May 30, 2024

Hi again,

I reproduced the steps exactly as you suggested and yes, no issues... But... but, but, but...

How can I make the MDI child maximized upon load?

from windowsribbon.

harborsiem avatar harborsiem commented on May 30, 2024

Mdi is not supported by the Ribbon directly. see: Mdi support.
This is the answer of a Microsoft member.
But you can calculate a size for the MDI client without maximizing every time when the main form changes the size.
Or you don't use Mdi. Alternatively, you can use a TabControl with some effort for closing, hiding, ....

from windowsribbon.

RoBeDi avatar RoBeDi commented on May 30, 2024

Shame, but ok... will use that instead... Thanks anyway for trying.

from windowsribbon.

harborsiem avatar harborsiem commented on May 30, 2024

I have updated the Wiki (News and Hints) with some words for MDI support

from windowsribbon.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.