Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Show MDI child as not maximized

Show MDI child as not maximized

Scheduled Pinned Locked Moved C#
dockerquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eggsovereasy
    wrote on last edited by
    #1

    I have a MDI container, inside of it I have a child form that is maximized. If I have a second form created and displayed by the first form that is maximized (with its MdiParent property set properly) the second form will also be maximized. Is there anyway to override this behavior? I know I can use ShowDialog, but I don't want it to be a dialog I want it to be a normal, nonmaximized window. The property on the form is set to Normal and I event do a WindowState = FormWindowState.Normal in the constructor, but it still comes as maximized. Any suggestions?

    D 1 Reply Last reply
    0
    • E eggsovereasy

      I have a MDI container, inside of it I have a child form that is maximized. If I have a second form created and displayed by the first form that is maximized (with its MdiParent property set properly) the second form will also be maximized. Is there anyway to override this behavior? I know I can use ShowDialog, but I don't want it to be a dialog I want it to be a normal, nonmaximized window. The property on the form is set to Normal and I event do a WindowState = FormWindowState.Normal in the constructor, but it still comes as maximized. Any suggestions?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      eggsovereasy wrote:

      Is there anyway to override this behavior?

      No. All the MDI child forms are treated the same. If one is maximized, they all are. If one is "normal", they all are.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      E 1 Reply Last reply
      0
      • D Dave Kreskowiak

        eggsovereasy wrote:

        Is there anyway to override this behavior?

        No. All the MDI child forms are treated the same. If one is maximized, they all are. If one is "normal", they all are.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        E Offline
        E Offline
        eggsovereasy
        wrote on last edited by
        #3

        Disappointing :( Thank you for the reply though, I guess I will try and make something work with ShowDialog().

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups