resizing forms?

G

Guest

Hi,

i am faily new to GUI programming and have a little problem with the
resizing of a DataGridView Control in my App. I just want it to grow as one
increases the window size, but only at the bottom, left and right border. The
distance to the top should be kept as it is. There are other controls. I
played a lot with docking and anchoring but didn't get it to work properly.

Are there other ways to this to work or can anyone explain in short how to
do this with configuring the above properties??

Perhaps there is a good tutorial out there??

Thanks for any hint!!

Thorsten
 
B

Ben Voigt [C++ MVP]

Thorsten moeller said:
Hi,

i am faily new to GUI programming and have a little problem with the
resizing of a DataGridView Control in my App. I just want it to grow as
one
increases the window size, but only at the bottom, left and right border.
The
distance to the top should be kept as it is. There are other controls. I
played a lot with docking and anchoring but didn't get it to work
properly.

Anchor it on all sides. Control above it should be anchored top. Controls
below should be anchored bottom and not top, so they move out of the way as
it grows. Same for controls to the left and right.
 

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