Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aligning controls on a Visual Studio 2012 Windows Form?

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?

Screenshot

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?

like image 331
JMK Avatar asked Feb 26 '13 22:02

JMK


People also ask

How do you arrange controls in a form?

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.


1 Answers

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.

like image 185
Beytan Kurt Avatar answered Sep 22 '22 10:09

Beytan Kurt