|
-
May 24th, 2009, 04:08 AM
#1
Thread Starter
Lively Member
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...
-
May 24th, 2009, 05:00 AM
#2
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.
-
May 24th, 2009, 09:39 AM
#3
Thread Starter
Lively Member
Re: help! component size and position after maximize form
 Originally Posted by jmcilhinney
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|