---
title: "Control position center on Form Maximize."  
description: "Control position center on Form Maximize."  
author: "Samuel Fernandes"  
published: 2015-03-02  
updated: 2015-03-02  
canonical: https://www.mindstick.com/forum/12994/control-position-center-on-form-maximize  
category: ".net"  
tags: [".net"]  
reading_time: 1 minute  

---

# Control position center on Form Maximize.

Hi,

I am new to [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) [Form application](https://www.mindstick.com/interview/23108/how-to-create-form-application-using-dot-net). I got into a very weird situation, I have created a Form where I have placed few [controls](https://www.mindstick.com/articles/66/how-to-create-controls-at-run-time-in-csharp-dot-net) to the center of the screen. Everything [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why) when I [execute](https://www.mindstick.com/interview/49/how-can-i-execute-a-php-script-using-command-line) the application, all [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) looks good and in center of the form where I had place.

[Now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now), the issue comes when I maximize the form, control move to top [left](https://www.mindstick.com/articles/12768/don-t-be-left-behind-with-the-new-it-revolution) corner and not to the center of the form.

## Replies

### Reply by Anonymous User

By default every control has an Anchor property set to Left, Top that’s why your controls move to top left of the screen when maximize.

Just change the Anchor property of the control to none.

### Reply by Anonymous User

Write code to change the position of the control at runtime on Resize event of the [form](https://www.mindstick.com/forum/6/multi-form-mfc-application).


---

Original Source: https://www.mindstick.com/forum/12994/control-position-center-on-form-maximize

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
