开发者

Non-desirable auto-scrolling to the beginning of the form

开发者 https://www.devze.com 2023-02-08 07:12 出处:网络
I have a Form which contains one control: Panel, which is much bigger than form itself. So, the form\'s scrollbar is used to navigate this panel. Autoscroll property of the form is set to true. The pr

I have a Form which contains one control: Panel, which is much bigger than form itself. So, the form's scrollbar is used to navigate this panel. Autoscroll property of the form is set to true. The problem is: after showing any dialog window the Autos开发者_如何学运维crollPosition is set to begining. How I can override this behavior to save scroll position.


You can override this by manually setting the scroll pos in your code. Just use Activated and Deactivated events of the form.

Look here for the answer to same problem and the Code

https://stackoverflow.com/questions/2020938/why-does-scrolling-position-change-after-refocusing-the-form/2022561#2022561

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号