I have a UserControl (size = 800 x 600) that contains a
TableLayoutPanel. The TableLayout Panel's Dock property is set to Fill.
When I place this UserControl in the left panel of a SplitContainer and
set its Dock property to Fill, it takes on the size of the panel (500 x
600), but the TableLayoutPanel remains 800 x 600.
If I return to the design tab for the UserControl and change it's size
manually to 500 x 600, however, the TableLayoutPanel resizes as
expected.
Note: I experimented with the AutoSize, AutoSizeMode, and Anchor
properties but none of these made any difference.
Another Note: If I change the size of the left panel of the
SplitContainer to 900 x 600, the TableLayoutPanel *expands* to fill the
extra 100 pixels. So, expanding works but shrinking doesn't. And this
is true even if I set the AutoSizeMode to GrowAndShrink.
Any idea what's going on here? Visual Studio bug or programmer error?
:)
Thanks,
-Dan