Resizeable scrollable TableLayoutPanel in Winforms

36 views Asked by At

I have a UserControl that I want to be scrollable if necessary.

The control is also docked in the form that it's contained in.

Everything in the UserControl is inside a TableLayoutPanel that has AutoScroll=True.

My problem is that it looks like the scrollbar is added before the control is resized, so that the control ends up with the scrollbar even though it's not really needed after the control has been resized.

Is there a way to force the scrollbar to be added after the control is resized so that it's added only if it's still needed after the resize?

0

There are 0 answers