Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
920
make fill group box not fill top
posted

This might be a stupid question but I thought that Fill and Top DockStyles wouldn't overlap each other.

I have two group boxes, I want one to dock top and never change size

I want the other to fill the rest of the space and fill the space on resizes.

Let's call them gbTop and gbFill

I make gbTop.Dock = DockStyle.Top and gbFill.Dock = DockStyle.Fill but gbFill fills the whole area including behind gbTop so the top of gbFill cant be seen because it's behind gbTop

 

What am I doing wrong?

Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    Hello,

    Occasionally, Visual Studio gets confused with the z-order of docked controls. Try using the "Bring To Front"/ "Send To Back" context menu options on the control set to Dock.Fill. Hopefully this helps. Please let me know if you require further assistance.

    Thanks,

    Chris.

Children
No Data