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 :)
Set control's Anchors property to [akLeft, akTop, akRight, akBottom].
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With