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...
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.
Re: help! component size and position after maximize form
Quote:
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:)