Trouble setting Autoscrollposition

  • Thread starter Thread starter Morten Wennevik
  • Start date Start date
M

Morten Wennevik

I am using autoscroll on a standard windows form of 5000x5000 pixels.
However, when trying to set the autoscrollposition it completely ignores it
(negative/positive makes no difference)
I am doing this in page_load. Does that make a difference?
I want the app to start in the center of the drawing area (2500 - width/2,
2500 - height/2)
 
You need to set the AutoScroll property to true.

Regards
Lee

No, the autoscroll property is already set, I use autoscrolling in another
procedure to paint the background correctly.
 
Hello,
I have recently experienced the same problem. A temporary work-around is
to assign the AutoScrollPosition during or after the Paint event.
I hope this helps.
Regards,
Martin
 
Back
Top