Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, December 11, 2017 5:35 PM
Just started using VS 2017 community edition and my existing projects from years before i used in previous versions of VS when i went to load them and align controls, the align options where disabled ?? i then just started a new winform project fresh in VS 2017 community edition and even then the options are grayed out .. why is this not working and where do i enabled and why is it so difficult it seems to enable this :) ?
All replies (3)
Monday, December 11, 2017 7:29 PM
I think that you should select two or more controls. (Select the button, then hold <Ctrl> and select other controls). Make sure that the form is not included into selection.
Monday, December 11, 2017 10:38 PM
yes that was it :( that's kinda of well stupid LOL.. so what do i do if i have say a panel or a groupbox i want to center and that is all ? do i have to insert a button or something "anything" along with and always select 2 controls ? that is not how it was in say VS 2010 or older versions i could click on a single control and align it however i wanted..
Tuesday, December 12, 2017 2:36 AM
Hi Benton Crook,
>>so what do i do if i have say a panel or a groupbox i want to center and that is all ? do i have to insert a button or something "anything" along with and always select 2 controls ?
For only control, please click Format -> Center in Form -> Horizontally/Vertically.
Besides, you can also add it to Menu bar:
- click the layout toolbar options to add or remove buttons.
- Click Customize...
- Select the Commands tab
- Select the Toolbar radio button and select Layout from the dropdown
- Click Add Command... and select Format from the Categories section
- Select the Center Horizontally and Center Vertically commands
Best regards,
Joyce
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].