# Centering Content On Form

In some cases, controls on the form move to the TopLeft direction when you zoom the Form because the control's Anchor property value is TopLeft.

## Content



In some cases, controls on the form move to the **TopLeft** direction when you zoom the Form because the control's **Anchor** property value is **TopLeft**.

To keep the control’s position in the center of the form, set the **C1Zoom.InnerPanelLayoutMode** property to **MiddleCenter**, like the following:

```vbnet
C1Zoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.MiddleCenter
```

```csharp
c1Zoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.MiddleCenter;
```