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
精彩评论