panel always on top

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sam

    #1

    panel always on top

    Hi,
    How can I have a panel that would be on top of any other controls all
    the time ?

    Thx

  • Crouchie1998

    #2
    Re: panel always on top

    Change the control's 'Z' order & make sure it's on top by validating the 'Z'
    order

    Crouchie1998
    BA (HONS) MCP MCSE


    Comment

    • Sam

      #3
      Re: panel always on top

      thanks but how do I do that ?

      Comment

      • Armin Zingler

        #4
        Re: panel always on top

        "Sam" <samuel.berthel ot@voila.fr> schrieb[color=blue]
        > Hi,
        > How can I have a panel that would be on top of any other controls
        > all the time ?[/color]

        You wouldn't see all the other controls then, right?

        You can set Dock=Fill and use "bring to front" in the context menu of the
        designer or call BringToFront at runtime.

        Armin

        Comment

        • Sam

          #5
          Re: panel always on top

          yes thx
          I've called bringtofront after adding all the other components and it
          works fine :)

          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: panel always on top

            "Sam" <samuel.berthel ot@voila.fr> schrieb:[color=blue]
            > thanks but how do I do that ?[/color]

            .... by calling the control's 'BringToFront' method.

            --
            M S Herfried K. Wagner
            M V P <URL:http://dotnet.mvps.org/>
            V B <URL:http://classicvb.org/petition/>

            Comment

            Working...