none
how to make controls adjust themselves in the parent control size change RRS feed

  • Question

  • Hi all,

    I have some controls put onto a user control. I like keep their relative positions and sizes when the user control got adjusted on the designer.

    thanks,

    Sheldon

    Tuesday, March 3, 2020 4:18 PM

All replies

  • Have you looked into the properties Anchor and dock (both are respected by the designer but depending on how they are used may not keep the same size)? There are two controls that may be helpful too, FlowLayoutPanel and TableLayoutPanel.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange


    Tuesday, March 3, 2020 4:31 PM
    Moderator
  • Forgot to mention, it is a Window form application. .NET 4.0
    Tuesday, March 3, 2020 9:16 PM
  • Forgot to mention, it is a Window form application. .NET 4.0
    No problem, what I provided works for .NET 4.0

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Tuesday, March 3, 2020 11:15 PM
    Moderator