I have a timer that runs a SQL query every 30 seconds to retrieve updated information.
Unfortunately every time the query runs the vertical scroll bar resets to the top most part of the form.
I tried
int scrollPosition = this.VerticalScroll.Value;
at the beginning of the timer code and
this.VerticalScroll.Value = scrollPosition;
at the end, but it only scrolls 1/2 way back. For example, if you are all the way at the bottom of the form, it resets to the middle of the form.
Any suggestions? I'm lost. It's not a major bug, but it's annoying.