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. Question in windows forms :

Question in windows forms :

Scheduled Pinned Locked Moved C#
questionwinformsdesign
3 Posts 3 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.
  • I Offline
    I Offline
    ImanMahmoud
    wrote on last edited by
    #1

    How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form ?

    D P 2 Replies Last reply
    0
    • I ImanMahmoud

      How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form ?

      D Offline
      D Offline
      Dennis C Dietrich
      wrote on last edited by
      #2

      ImanMahmoud wrote: How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form? Could it be that you want to create an application with a Multiple Document Interface[^] (MDI)? If so, check out Multiple-Document Interface (MDI) Applications[^] on MSDN. Best regards Dennis

      1 Reply Last reply
      0
      • I ImanMahmoud

        How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form ?

        P Offline
        P Offline
        Pyro Joe
        wrote on last edited by
        #3

        easy,in the properties inspector for the main form, set the "IsMdiContainer" property to true. then create a new form and call it Form2 (the default value, used for the sake of this example) in the load event of the first form (Form1), paste this code. Form2 Form2 = new Form2(); Form2.MdiParent = this; Form2.Show(); the Form2 now cannot escape the parent, which is an Mdi, or multiple document interface form.

        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