滚动条上不改变滚动值更新上不、滚动条

2023-09-03 01:34:41 作者:噩

当设定 VerticalScroll.Value 面板自动滚屏设置为,滚动位置相应地改变,但大拇指的位置没有。我是否需要以某种方式更新滚动条(的Invalidate(TRUE)在面板上不工作)?任何想法?

When setting VerticalScroll.Value in a Panel with AutoScroll set to true, the scroll position changes accordingly but the position of the thumb does not. Do I need to update the scrollbar somehow (Invalidate(true) on the panel does not work)? Any ideas?

推荐答案

尝试调用.PerformLayout();