滚动条上不改变滚动值更新 [英] Scrollbar does not update on changing the scroll value

查看:179
本文介绍了滚动条上不改变滚动值更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当设定 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?

推荐答案

尝试调用<一href="http://msdn.microsoft.com/en-us/library/z8aw0sd8.aspx#Y342"><$c$c>.PerformLayout();

这篇关于滚动条上不改变滚动值更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆