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?