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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Please Help!! MDI Problem

Please Help!! MDI Problem

Scheduled Pinned Locked Moved C#
help
5 Posts 3 Posters 1 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
    Irfan Kothari
    wrote on last edited by
    #1

    Hello Friends, I am developing a MDI application. In my application i dont want the control box of all the child forms and also i want that all the forms should be opened maximize in parent. i have set the property controlbox=false, maximizebox=false,minimizebox=false, form borderstyle=fixedsingle . but when i run the application control box automatically appears.:confused: i really stuck into this, please help me! any kind of help is appreciable thanks in advance Irfan kothari

    J J 2 Replies Last reply
    0
    • I Irfan Kothari

      Hello Friends, I am developing a MDI application. In my application i dont want the control box of all the child forms and also i want that all the forms should be opened maximize in parent. i have set the property controlbox=false, maximizebox=false,minimizebox=false, form borderstyle=fixedsingle . but when i run the application control box automatically appears.:confused: i really stuck into this, please help me! any kind of help is appreciable thanks in advance Irfan kothari

      J Offline
      J Offline
      jk chan
      wrote on last edited by
      #2

      Hi For opening child forms as maximaized in mdi parent window set WindowState = FormWindowState.Maximized; in resize event. void ChildForm_Resize(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized;} Me also set the control box to false in child form. But it still appears. I am looking it now... :-D ~KD

      If u can Dream... U can do it

      J 1 Reply Last reply
      0
      • J jk chan

        Hi For opening child forms as maximaized in mdi parent window set WindowState = FormWindowState.Maximized; in resize event. void ChildForm_Resize(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized;} Me also set the control box to false in child form. But it still appears. I am looking it now... :-D ~KD

        If u can Dream... U can do it

        J Offline
        J Offline
        jk chan
        wrote on last edited by
        #3

        Hi Irfan Kothari Just got an another !dea. Consider you have a mdi parent window. you can create your child window by deriving it from a Control class. Then it don't have control boxes.:-D . For making it maximaize put the dock style to DockStyle.Fill. This time u will get a child window with no control box , and also it is maximaized. Hopes this helps ~KD

        If u can Dream... U can do it

        1 Reply Last reply
        0
        • I Irfan Kothari

          Hello Friends, I am developing a MDI application. In my application i dont want the control box of all the child forms and also i want that all the forms should be opened maximize in parent. i have set the property controlbox=false, maximizebox=false,minimizebox=false, form borderstyle=fixedsingle . but when i run the application control box automatically appears.:confused: i really stuck into this, please help me! any kind of help is appreciable thanks in advance Irfan kothari

          J Offline
          J Offline
          Joam Mathew
          wrote on last edited by
          #4

          Hi, Rather than setting the WindowState property of the child window to Maximized, try setting the dock property of the child form to DockStyle.fill jsut before calling the child form. I hope this would help..:) Cheers!!!!

          J 1 Reply Last reply
          0
          • J Joam Mathew

            Hi, Rather than setting the WindowState property of the child window to Maximized, try setting the dock property of the child form to DockStyle.fill jsut before calling the child form. I hope this would help..:) Cheers!!!!

            J Offline
            J Offline
            jk chan
            wrote on last edited by
            #5

            But this time if you double click on the child window title bar , you can see control box(maximaize,mini,close) enabled.

            If u can Dream... U can do it

            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