C
C#2mo ago
yvuii

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
No description
No description
10 Replies
ティナ
ティナ2mo ago
which gui framework you are using?
yvuii
yvuiiOP2mo ago
windows form app
No description
yvuii
yvuiiOP2mo ago
or did i answer wrong? (sorry new)
ティナ
ティナ2mo ago
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
yvuii
yvuiiOP2mo ago
o
Mąż Zuzanny Harmider Szczęście
the rect size is prolly static, try making it a percentage of resolution
leowest
leowest2mo ago
you can't its winforms u have to use anchor and docking
leowest
leowest2mo ago
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.

Did you find this page helpful?