[RESOLVED] [2008] Stop control repositioning with container resize
Hi everyone. I'm writing a Windows app for once and have hit an annoyance I want to switch off - but I'm not sure where the setting is!
I've just layed out a few controls on a new form - positioned them just how I want them, then resized the form. Lo and behold I wasn't just resizing the form but several controls such as labels were being repositioned also (not resized, but their top and left properties were altering with the form resize) whilst other controls such as textboxes and buttons remained in place during the form resize.
I've found the same behaviour exists when controls are contained within a groupbox container as opposed to a form, and the groupbox is resized also.
Please can someone let me know how to switch this setting off??
Re: [2008] Stop control repositioning with container resize
look for Anchor property of control ;)
Re: [2008] Stop control repositioning with container resize
Ohh so that's what does it, nice one :thumb: thanks very much for that tip - I shall happily continue now then and not throw the computer out the window then :p