cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
Hi
I have a TableLayoutPanel whose ColumnStyles are set to:
1st column = 200 pixels absolute
2nd column = (remainder/autosize)
I find that child controls added to the second column expand to fill it when Anchor setting includes right - i.e. their behaviour is more like Dock = Fill
What I'm after, is for them to be e.g. 200 pixels wide in the 500 pixel wide column. When the column expands to 600 pixels, the control should grow to 300 pixels (i.e. use 100% of the 100px expansion, but not 100% of the space)
Any ideas? Must I create a third column of width 300, to which nothing is added?
I have a TableLayoutPanel whose ColumnStyles are set to:
1st column = 200 pixels absolute
2nd column = (remainder/autosize)
I find that child controls added to the second column expand to fill it when Anchor setting includes right - i.e. their behaviour is more like Dock = Fill
What I'm after, is for them to be e.g. 200 pixels wide in the 500 pixel wide column. When the column expands to 600 pixels, the control should grow to 300 pixels (i.e. use 100% of the 100px expansion, but not 100% of the space)
Any ideas? Must I create a third column of width 300, to which nothing is added?