Take the 2-minute tour ×

I have a windows form that has a Panel that has about six Labels. Some of the labels are on the left on the Panel and some at the center. My question is that how do i make all the controls centered when the form is maximised.

For Example:

If the panel controls are like this

Label1                   Label2
   Label4             Label5

This is what i want to achieve when the form is maximised

                          Label1                   Label2
                             Label4             Label5

Any help will appreciated

share|improve this question

2 Answers 2

up vote 4 down vote accepted

At design time you need to center your controls and then go to the anchoring property of each control and remove any anchoring(Left,Right,Top,Bottom) they have. This will ensure that when form is resized they remain at their design time position.

share|improve this answer
Thanks it worked –  Tijesunimi Jul 28 '13 at 12:38

use Anchor property of each control

share|improve this answer
how do i use it?? –  Tijesunimi Jul 28 '13 at 12:35
select control on the form, then open Properties window (F4), there is Anchor property –  ihorko Jul 28 '13 at 12:37

Your Answer


