Stop buttons stretching on resize when anchored left and right
Posted on 2009-05-24
I have a windows form with a whole bunch of buttons and labels all laid out nice and pretty like. I want them to stay more or less in the middle when the window is resized. Moving them horizontally is fine with bigger gaps between them. Or leave them exactly as I designed them in the center.
I have set the "Anchor" to "Bottom, Left, Right" and "Autosize" to "False". However, the labels don't move and the buttons stretch. Is there a way to stop this from happening?
I just got the labels to move by setting the "TextAlign" to "TopCenter". However, when resized enough the labels start disappearing by going under another label. So I guess the labels are stretching as well.