Speeding Up Slow, CPU-Intensive Scrolling in WinForms

Posted by S B on Stack Overflow See other posts from Stack Overflow or by S B
Published on 2010-05-03T15:55:23Z Indexed on 2010/05/03 16:08 UTC
Read the original article Hit count: 376

Filed under:
|
|
|
|

How can I speed up the scrolling of UserControls in a WinForms app.?

My main form has trouble scrolling quickly on slow machines--painting for each of the small scroll increments is CPU intensive.

My form has roughly fifty UserControls (with multiple fields) positioned one below the other. I’ve tried intercepting OnScroll and UserPaint in order to eliminate some of the unnecessary re-paints for very small scroll events, but the underlying Paint gets called anyway.

How can I streamline scrolling on slower machines?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about Performance