How to programatically set AutoScrollPosition for a panel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a C# app that has a display panel(scrollable). I need to set AutoScrollPosition programatically in a zoom function. I tried:

this.AutoScroll = true;
this.AutoScrollPosition = new Point(100,100);

But the value of AutoScrollPosition was not changed.
Any idea what is the problem? Or how usually this is done?
Thanks.

Michael
 
Back
Top