Move items in a form depending on screen size
Right now I have a form with stuff in but whenever I go into fullscreen or reduce the size the stuff stays in the same position (which causes it to go out of view). How can I circumvent this?
4 Replies
Forgot to do tags
I know that forms isn't ideal for games but its a school thing
Is this winforms?
Winforms doesn't play well with control layout usually
you are looking for docking
or anchoring
https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-dock-and-anchor?view=netdesktop-8.0
you eventually have to put the components to implement the resizing logic you want, so tables, layoutpanels, splitcontainers, and such
if you don't want that then you have to do your own logic on the various form events, like resize