Build ruller graduation, run-time

I have a vertical line (lnScale) on a form.


I want to show graduation on this line using horizontal lines at:

at 0 (at the bottom end) , 100, 200 (numbers labeled):  horizontal line width=8 and Border width = 2
at 150, 250 (numbers labeled): horizontal line width=6 and Border width = 1
at 10, 20, 30, etc . (numbers not labeled): horizontal line width=4 and Border width = 1

I am looking for a solution where the components (graduation lines and possibly the labeling numbers) are created run-time and positioned on their spot as opposed to having the graduation line created before hand.

Thank you.

LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?
Use a graphics.DrawLine supplying the relevant coordinates. Then use Graphics.DrawString to draw the text.
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
I will add to my solution next week when I am done with midterm.

Thank you,

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.