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. Second window behavior

Second window behavior

Scheduled Pinned Locked Moved C#
questiondiscussion
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.
  • S Offline
    S Offline
    simplicitylabs
    wrote on last edited by
    #1

    I have Form, and with a button, it launches a second form. I want the second form to "stay with" the first form. On top of it, in fact. But, not on top of everything else. Does any of this make sense? This is not MDI... I've exhausted Google -- it's tired of me search for different variations of "form, window, child, parent, etc...". Thoughts?

    M 1 Reply Last reply
    0
    • S simplicitylabs

      I have Form, and with a button, it launches a second form. I want the second form to "stay with" the first form. On top of it, in fact. But, not on top of everything else. Does any of this make sense? This is not MDI... I've exhausted Google -- it's tired of me search for different variations of "form, window, child, parent, etc...". Thoughts?

      M Offline
      M Offline
      Miszou
      wrote on last edited by
      #2

      In your parent form, do this to create the child:

      Form f = new Form();
      f.Owner = this;
      f.Show();

      I hope that's what you were looking for ;)


      Sunrise Wallpaper Project | The StartPage Randomizer | A Random Web Page

      S 1 Reply Last reply
      0
      • M Miszou

        In your parent form, do this to create the child:

        Form f = new Form();
        f.Owner = this;
        f.Show();

        I hope that's what you were looking for ;)


        Sunrise Wallpaper Project | The StartPage Randomizer | A Random Web Page

        S Offline
        S Offline
        simplicitylabs
        wrote on last edited by
        #3

        That was it. Thank you very much.

        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