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. Window Position

Window Position

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

    Hello, In a window application, i open forms from my main window. When i open a form from an other form, the second is always under the other, how can i do to put it on the top? Thank you for the answers.

    A F 2 Replies Last reply
    0
    • S Spack

      Hello, In a window application, i open forms from my main window. When i open a form from an other form, the second is always under the other, how can i do to put it on the top? Thank you for the answers.

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

      use method ShowDialog() to display focused form.

      S 1 Reply Last reply
      0
      • S Spack

        Hello, In a window application, i open forms from my main window. When i open a form from an other form, the second is always under the other, how can i do to put it on the top? Thank you for the answers.

        F Offline
        F Offline
        faladrim
        wrote on last edited by
        #3

        in my app i use childs, so i also have diff forms in my main form, i simply tell the childs were to stand: databchild.Show(); // show form3 databchild.Top = 10; databchild.Left = 10; databchild.Height = 550; databchild.Width =560; grz

        1 Reply Last reply
        0
        • A albCode

          use method ShowDialog() to display focused form.

          S Offline
          S Offline
          Spack
          wrote on last edited by
          #4

          Thank you for the answer but i don't want a modal 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