How to solve Ruler Control flickering

97 views Asked by At

I'm using this Ruler control in my project.

The mouse tracking line that is drawn into the ruler flickers when the mouse moves. I've tried to add this line inside its constructor:

SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);

but nothing changes. How can I solve this flickering issue?

0

There are 0 answers