Does anyone have a good technique (or tutorial) to implement rulers within a C# Windows Forms application? I want to display an image while showing rulers that indicate your mouse position to allow a more accurate positioning of the cursor. Just like the image below:

I tried using splitter controls to hold the tick marks but I don’t know how to make the top-left the gray blank area. Any advice? Thanks.
I would build a custom control to do this in both X and Y location and use two controls.
The control would have to override
Paint()and use GDI methods to display the tick marks, it would then capture mouse events and update locations appropriately.