Resizing child controls in a form

D

Dmitry Shaporenkov

Hi all,

I have a form that includes multiline edit box, tree view
and several buttons. I would like edit box and tree view
to resize when the form is resized. Of course, I can
manually override OnResize () method of the form to set
sizes of child controls there, but doing so will result
in necessity to write code that plays around sizes and
positions of controls. Moreover, this code needs to be
updated each time I reorder controls on the form.

Is there a way to generate this code automatically? Do
any other approaches to resizing controls exist?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top