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. bring to front

bring to front

Scheduled Pinned Locked Moved C#
help
6 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
    SHaroz
    wrote on last edited by
    #1

    I added a status bar and a panel to a form. I then set the panel's borderstyle to fixed3d (this way I can see all sides of the panel) and set the dock property to DockStyle.Fill. The problem is that the panel gets tucked underneath the status bar. This can be fixed by right clicking the panel and selecting 'bring to front'. Unfortunately I will be adding the panel dynamically, so I need a way acheive the same effect of 'bring to front' via code. Any help would be greatly appreciated. Thanks, Steve

    N L 2 Replies Last reply
    0
    • S SHaroz

      I added a status bar and a panel to a form. I then set the panel's borderstyle to fixed3d (this way I can see all sides of the panel) and set the dock property to DockStyle.Fill. The problem is that the panel gets tucked underneath the status bar. This can be fixed by right clicking the panel and selecting 'bring to front'. Unfortunately I will be adding the panel dynamically, so I need a way acheive the same effect of 'bring to front' via code. Any help would be greatly appreciated. Thanks, Steve

      N Offline
      N Offline
      Nathan Blomquist
      wrote on last edited by
      #2

      Try: myPanel.BringToFront(); The BringToFront() method is part of the Control class. Later, Nathan --------------------------- Hmmm... what's a signature?

      S 1 Reply Last reply
      0
      • N Nathan Blomquist

        Try: myPanel.BringToFront(); The BringToFront() method is part of the Control class. Later, Nathan --------------------------- Hmmm... what's a signature?

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

        Duh:eek:! I don't know why I thought bring to front could only be used from the IDE. Man, I feel stupid. Thanks Nathan

        N 1 Reply Last reply
        0
        • S SHaroz

          I added a status bar and a panel to a form. I then set the panel's borderstyle to fixed3d (this way I can see all sides of the panel) and set the dock property to DockStyle.Fill. The problem is that the panel gets tucked underneath the status bar. This can be fixed by right clicking the panel and selecting 'bring to front'. Unfortunately I will be adding the panel dynamically, so I need a way acheive the same effect of 'bring to front' via code. Any help would be greatly appreciated. Thanks, Steve

          L Offline
          L Offline
          Luis Alonso Ramos
          wrote on last edited by
          #4

          Try changing the order or creation of the status bar and panel. -- LuisR ──────────────   Luis Alonso Ramos   Chihuahua, Mexico   www.luisalonsoramos.com "Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein

          S 1 Reply Last reply
          0
          • S SHaroz

            Duh:eek:! I don't know why I thought bring to front could only be used from the IDE. Man, I feel stupid. Thanks Nathan

            N Offline
            N Offline
            Nathan Blomquist
            wrote on last edited by
            #5

            Not stupid.... Just overworked :eek: Glad, I could be of help. Later, Nathan --------------------------- Hmmm... what's a signature?

            1 Reply Last reply
            0
            • L Luis Alonso Ramos

              Try changing the order or creation of the status bar and panel. -- LuisR ──────────────   Luis Alonso Ramos   Chihuahua, Mexico   www.luisalonsoramos.com "Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein

              S Offline
              S Offline
              SHaroz
              wrote on last edited by
              #6

              That was the first thing I tried. I did every possible combination for creating and defining the two controls. Thanks for the suggestion though :)

              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