I have a TableLayoutPanel inside userconrol. I want to add a vertical scrollbar to the panel conditionally - only if there are more than 5 lines. The table layout pane should only display 5 rows, regardless of the size of the user control. The remaining rows, if any, will be in the table layout pane, but will only be shown when scrolling down.
How can i do this?
Thank.
source
share