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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top