I have a form that has many custom controls on that had a terrible flicker, I found the following code (here on stackoverflow whilst searching for a solution, How to fix the flickering in User controls or Winforms Double Buffering posted by Hans Passant) which fixed the flicker
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
return cp;
}
}
However, now if I click the position bar on the scrollbar, the position bar stays fixed, until I let go of the mouse button.
Is there a way to have the scroll position bar update whilst being dragged and not have flicker on the controls?
Many thanks