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. how To make a mdi form? [modified]

how To make a mdi form? [modified]

Scheduled Pinned Locked Moved C#
csstutorialquestion
4 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.
  • H Offline
    H Offline
    help as an alias
    wrote on last edited by
    #1

    Hi All,

    i m using the following code but this code is write on mdi form
    any can give code to write on the child form.
    Stock childform = null; foreach (Form f in this.MdiChildren) { if (f is Stock) { childform = (Stock)f; break; } } if (childform == null) { childform = new Stock(); childform.MdiParent = this; childform.StartPosition = FormStartPosition.CenterScreen; childform.sStock = sMdi; childform.Show(); childform.Focus(); } else { childform.Show(); childform.Focus(); }

    i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child. -- modified at 5:04 Thursday 26th July, 2007

    Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

    A 1 Reply Last reply
    0
    • H help as an alias

      Hi All,

      i m using the following code but this code is write on mdi form
      any can give code to write on the child form.
      Stock childform = null; foreach (Form f in this.MdiChildren) { if (f is Stock) { childform = (Stock)f; break; } } if (childform == null) { childform = new Stock(); childform.MdiParent = this; childform.StartPosition = FormStartPosition.CenterScreen; childform.sStock = sMdi; childform.Show(); childform.Focus(); } else { childform.Show(); childform.Focus(); }

      i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child. -- modified at 5:04 Thursday 26th July, 2007

      Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

      A Offline
      A Offline
      ashukasama
      wrote on last edited by
      #2

      make yo:)ur child as a IsMdiContainer as true , it will become mdi child Ashish Kasma

      H 1 Reply Last reply
      0
      • A ashukasama

        make yo:)ur child as a IsMdiContainer as true , it will become mdi child Ashish Kasma

        H Offline
        H Offline
        help as an alias
        wrote on last edited by
        #3

        Thankx for reply,But its not the solution. there is a particular code is use for this because i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child.

        Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

        A 1 Reply Last reply
        0
        • H help as an alias

          Thankx for reply,But its not the solution. there is a particular code is use for this because i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child.

          Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

          A Offline
          A Offline
          ashukasama
          wrote on last edited by
          #4

          dear what you need is not clear ,:confused: because ur subject says you want to "make a mdi form?":sigh: please elaborate in more detail. :)

          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