Preferred way to keep control centered on resize

What is your preferred way of keeping controls centered on its parent when the parent change width or height?


If by 'centered' you mean "it was already in the middle and you want to keep it there without resizing it", then remove all anchors. If it should be resized, gabr's solution is the one to with :)

Need Your Help

How to find Customer Entities logical name from Guid in Microsoft CRM

c# .net dynamics-crm

In CRM I am trying to automate the process of creating a new email from a previous email in the chain. This email has to go to the customer of the case, who could be either an account or a contact....

Connecting to SQL server in ASP

sql sql-server asp-classic iis-7.5

I'm sure this has been answered before, but every example I try I can't seem to connect to my SQL Server.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.