Results 1 to 3 of 3

Thread: [RESOLVED] [2008] Stop control repositioning with container resize

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Resolved [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??

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: [2008] Stop control repositioning with container resize

    look for Anchor property of control
    __________________
    Rate the posts that helped you

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Smile Re: [2008] Stop control repositioning with container resize

    Ohh so that's what does it, nice one thanks very much for that tip - I shall happily continue now then and not throw the computer out the window then

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width