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. bringing the form on top

bringing the form on top

Scheduled Pinned Locked Moved C#
help
7 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.
  • R Offline
    R Offline
    Rizwan Rathore
    wrote on last edited by
    #1

    Hi i want to bring my form in front of all the windows those r opened b4 it but not in front of the windows wich r opened after thisssss any sugessionsss looking forward for help Regards,

    R 1 Reply Last reply
    0
    • R Rizwan Rathore

      Hi i want to bring my form in front of all the windows those r opened b4 it but not in front of the windows wich r opened after thisssss any sugessionsss looking forward for help Regards,

      R Offline
      R Offline
      Rei Miyasaka
      wrote on last edited by
      #2

      I'm not sure there's a way to do ittttt You could try setting TopMost to true and then disabling it right awayyyyyy, but that probably won't make it stay in front of the other topmost onessssssss

      R 1 Reply Last reply
      0
      • R Rei Miyasaka

        I'm not sure there's a way to do ittttt You could try setting TopMost to true and then disabling it right awayyyyyy, but that probably won't make it stay in front of the other topmost onessssssss

        R Offline
        R Offline
        Rizwan Rathore
        wrote on last edited by
        #3

        how can i change this property through coding coz it is not visible there suppose if the name of the form is form1 then form1.TopMost is not available so how can i change it ?? looking forward for help Regards,

        R 1 Reply Last reply
        0
        • R Rizwan Rathore

          how can i change this property through coding coz it is not visible there suppose if the name of the form is form1 then form1.TopMost is not available so how can i change it ?? looking forward for help Regards,

          R Offline
          R Offline
          Rei Miyasaka
          wrote on last edited by
          #4

          Really? It shows up fine on my machine. I'm on VS2005. Try doing it in the designer and then dissecting InitializeComponents().

          R 1 Reply Last reply
          0
          • R Rei Miyasaka

            Really? It shows up fine on my machine. I'm on VS2005. Try doing it in the designer and then dissecting InitializeComponents().

            R Offline
            R Offline
            Rizwan Rathore
            wrote on last edited by
            #5

            reinux wrote:

            dissecting InitializeComponents().

            well wot does this mean i cudn't understand plzz explain a little

            R 1 Reply Last reply
            0
            • R Rizwan Rathore

              reinux wrote:

              dissecting InitializeComponents().

              well wot does this mean i cudn't understand plzz explain a little

              R Offline
              R Offline
              Rei Miyasaka
              wrote on last edited by
              #6

              When you design a form, all of the code for the code gets put in the InitializeComponents() method that gets called by the constructor. Just read through that and see if you can find out how it's setting TopMost, and copy that line of code.

              R 1 Reply Last reply
              0
              • R Rei Miyasaka

                When you design a form, all of the code for the code gets put in the InitializeComponents() method that gets called by the constructor. Just read through that and see if you can find out how it's setting TopMost, and copy that line of code.

                R Offline
                R Offline
                Rizwan Rathore
                wrote on last edited by
                #7

                thxx sir, its done by this.TopMost :) do i ve also done the same

                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