Winform autoscroll not working

旧街凉风 提交于 2019-12-11 19:36:42

问题


I have a form containing a user control in which I have a GroupBox and in it there is a TableLayoutPanel (table1).

One of the rows in this table also contains a TableLayoutPanel (table2).

I am adding rows to table2 dynamically when the user clicks a link label, and I need to have a scroll bar but there is no scroll bar.

I tried all combination possible with

 AutoScroll = true, AutoSize = true, AutoSizeMode = GrowOnly

But nothing helps.

What can I do ?


回答1:


Seems that Dock.Fill was the problem...



来源:https://stackoverflow.com/questions/21073511/winform-autoscroll-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!