# Resizing the Form

You can keep the aspect ratio of the form’s size by using the C1Zoom.KeepAspectRatio property. If the property value is true, the Form's width and height change together when resized.

## Content

You can keep the aspect ratio of the form’s size by using the **C1Zoom.KeepAspectRatio** property. If the property value is true, the Form's width and height change together when resized.

![retain the zoom aspect ratio](https://cdn.mescius.io/document-site-files/images/b72f799f-5669-44a4-8119-5f3343d59999/images/resize_form.png)

To programatically set the C1Zoom.KeepAspectRatio to true, use the following code:
[C#]

```csharp
c1Zoom1.KeepAspectRatio = true;
```

[Visual Basic]

```vbnet
C1Zoom1.KeepAspectRatio = True
```

To set the minimum size or maximum size of the form, use the **Form.MinimumSize** property or **Form.MaximumSize** property.