How to get equal sizing panes in a form?

A

Axel Dahmen

Hi,

I want to create a simple form containing, lets say, two TextBoxes within a
Panel. Both TextBoxes should resize equally when the user resizes the
window.

Can the Forms layout manager handle this? And how do I have to set the
properties to get the desired effect?

Your help is quite appreciated!

TIA,
Axel Dahmen

Example sketch:

=================== ============================
=================== ============================
| | | |
| __________ | | __________________ |
| |__________| | => | | | |
| |__________| | | |__________________| |
| | | | | |
| | | |__________________| |
=================== | |
| |
============================
 
F

Frank Eller

Hi Axel,
I want to create a simple form containing, lets say, two TextBoxes
within a Panel. Both TextBoxes should resize equally when the user
resizes the window.

Can the Forms layout manager handle this? And how do I have to set the
properties to get the desired effect?

In this cas you need to calculate the new sizes yourself in the Resize-Event
....

Regards,

Frank Eller
www.frankeller.de
 

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