As I can understand, the Ruler is just a visual element. Make it by sub-classing of
System.Windows.Forms.Control
, override its
OnPaint
method for rendering, make rendering depending on the size of a parent control, call
System.Windows.Forms.Control.Invalidate
of your Ruler instance when resizing, presentation option modification and all other events where the loop of this control should be changed.
See
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx[
^].
—SA