Doublebuffer

XOJO 2020r2.1 - Windows 10 Desktop

In my code I have a ‘Canvas.DoubleBuffer = True’ line.
But this is Deprecated. There is no replacement shown.
What does this ‘DoubleBuffer’ do, and what could I do to not recieve the deprecated error anymore ?

Thanks
Regards

remove this line of code and see if your canvas flicker.
if you need a paint event you call this invalidate method.