How to anchor
I want the blue rectangle to appear like the first pic when minized and maximized
the 2nd pic is the result of whats currently happening


10 Replies
which gui framework you are using?
windows form app

or did i answer wrong? (sorry new)
idk winform sorry
btw your first picture just showing a light blue rect floating on a white background without any reference point, and we dont know how you want to place your rect
o
the rect size is prolly static, try making it a percentage of resolution
you can't its winforms u have to use anchor and docking
Control layout options - Windows Forms
Learn about the different settings on a control that affect layout and positioning in Windows Forms for .NET. Learn about the different types of control containers that affect layout.