Results 1 to 3 of 3

Thread: help! component size and position after maximize form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2009
    Posts
    106

    help! component size and position after maximize form

    hi all, when i do designing on the form, example dragging the buttons, labels into the correct position in the form.

    after i run the program, the form pop up showing no problem.

    however, when i click on the maximize button on the top right of the form, the form enlarge and fill the screen. but the components will not move accordingly.

    is there anyway to make those components to change their position according to the form size?

    pls help...

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help! component size and position after maximize form

    You use the Anchor property. Select the sides you want your control to remain a constant distance from and the control will relocate and resize with the form to maintain those distances. For instance, you would anchor OK and Cancel buttons to the Bottom and Right sides to keep the buttons in the bottom, right-hand corner.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2009
    Posts
    106

    Re: help! component size and position after maximize form

    Quote Originally Posted by jmcilhinney View Post
    You use the Anchor property. Select the sides you want your control to remain a constant distance from and the control will relocate and resize with the form to maintain those distances. For instance, you would anchor OK and Cancel buttons to the Bottom and Right sides to keep the buttons in the bottom, right-hand corner.

    thank u

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