I am certain that <= Visual Studio 2010 contained options to align controls on a Windows Form, but on 2012 the controls on the Layout toolbar seem grayed out, why is this?
I really don't want to have to install just 2010 to center a control on my Windows Form, is there a way around this?
If you want to add other controls to the same layout, hold down the SHIFT key and also select those controls. You can select controls in other layouts. Do one of the following: If the form is open in Design view, drag the selected fields to the layout.
They seem to be just for multiple controls. I've tried it in VS 2010 also, same there.
For only one control, you can use Format => Center in Form => Horizontally/Vertically
In VS 2010, there are default menu buttons for the commands above, but not in VS 2012 by default. Maybe you've been confused with that. (for the certainty issue: it is for "groups of controls", as noted)
When you select multiple controls, these buttons will be available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With