|
-
Jun 25th, 2008, 01:01 PM
#1
Thread Starter
Evil Genius
[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??
-
Jun 25th, 2008, 01:06 PM
#2
Re: [2008] Stop control repositioning with container resize
look for Anchor property of control
__________________
Rate the posts that helped you 
-
Jun 25th, 2008, 01:10 PM
#3
Thread Starter
Evil Genius
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|