Implement rulers in C # form

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

Ruler depicting where the cursor is located.

I tried to use splitter controls to hold labels, but I don't know how to make the upper left gray blank area. Any advice? Thank.

+3
source share
2 answers

I would like to create my own control to do this in both X and Y places, and use two controls.

Paint() GDI , .

+3

Source: https://habr.com/ru/post/1697682/


All Articles