471,066 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

Resize a form and the control, when dragging the corner to a new location

Hello

I've created a form that serves as a front end for a DB. My question is how
to resize the form, and have the control on the form resize themselves as i
drag the form. I've got a status bar added to the bottom of the form, but
when I use the mouse to drag the right bottom corner, the form itself will
resize, but nothing else will adjust with the size of the form. How do I
accomplish this?

Any Ideas?

Thanks
Nov 21 '05 #1
2 1725
Using the docking properties on the controls. Even better, make sure you
embed the controls into suitably docked panels for better organisation.
Alternatively, you can handle the OnSize and OnResize events and manually
move/size your controls, but imho using docking properties is much easier ;)

"Jason" <so*****@somewhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello

I've created a form that serves as a front end for a DB. My question is
how
to resize the form, and have the control on the form resize themselves as
i
drag the form. I've got a status bar added to the bottom of the form, but
when I use the mouse to drag the right bottom corner, the form itself will
resize, but nothing else will adjust with the size of the form. How do I
accomplish this?

Any Ideas?

Thanks

Nov 21 '05 #2
"Jason" <so*****@somewhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
how to resize the form, and have the control on the form resize
themselves as i drag the form.


Look at the Anchor property of each Control.
For really complicated stuff, consider using the Layout Event of
each container Control on (and including) the Form.

HTH,
Phill W.
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Ian Stiles | last post: by
3 posts views Thread by Z D | last post: by
5 posts views Thread by gilgames | last post: by
4 posts views Thread by ThunderMusic | last post: by
7 posts views Thread by Ray Cassick | last post: by
2 posts views Thread by Lou | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.