By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
"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.