auto-scaling size with anchors - overlapping controls

Posted by Shane.C on Stack Overflow See other posts from Stack Overflow or by Shane.C
Published on 2012-07-03T09:14:20Z Indexed on 2012/07/03 9:15 UTC
Read the original article Hit count: 650

Filed under:
|
|
|
|

I'm having some trouble with resizing and scaling of controls in a windows form. I've set anchors up so that the controls stay in ratio with the form, which works great. However, perhaps i was expecting too much when i thought that the control origin points would also scale and change with the form scaling, but this is not the case and i'm finding my controls overlapping. here's some screenshots;

enter image description here

enter image description here

anyone know of an approach i can take to solve this problem? perhaps i need to set control origins to dynamic drawing points that scale, but then do these redraw on scaling the form, or only on creation?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET