C# – Slow refresh on panel scrolling

cwinforms

I'm developing an user control that I need for a project, the control have around 13 rows, 7 columns of textboxes, comboboxes… everything on a form autoscrollable.
The problem is that in execution time when scrolling the content refreshing is very very slow.
Some idea?

Using a datagridview is not an option.

Edit:

I should be more specific, the 13 row controls are in the usercontrol.
I have changed the uc's doublebuferred property to true, I can't change the child controls because all them are standard text and comboboxes, so there isn't such property.
In the main form I'm creating around 7 of this usercontrols dynamically inside of an autoscrollable panel, the problem comes scrolling the panel, the refresh is extremely slow.
And yes, I neither can believe that the winforms could be so bad.

Regards.

Best Answer

Try using DoubleBuffered = true within the constructor of your UserControl.

Related Topic