c# - Lags during scrolling panel with user controls -


good day.

i working on custom control (really it's panel gadgets) contains number of controls. in case, there instances of myembeddedcontrol : usercontrol few panels, buttons, labels , methods. behaviour of controls not matter, point have locations within custom control. problem cpu load increases 99% , crazy lags during scrolling control:

normal state enter image description here

during scrolling enter image description here

i tried set doublebuffered true. there many user controls, showing area small. not understand why paint hard. may wrong , i'd better not use many controls inside custom control? best practices?


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -