We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Detect graphics line on form MouseMove

I have a form on which I have some lines drawn. I would like to know when the mouse cursor is over any part of a particular line. I could then change the cursor shape to show it recognized it as a line. In VB6 I used Me.Point(X,Y) to retrieve the Color at X,Y. How do I do this in C#.NET?

1 Reply

GR grer June 30, 2003 12:47 PM

MR. Jordon, have you tried to use the pen object that you used to draw the line to get the coordinates of the line? > I have a form on which I have some lines drawn. I would like to know when the mouse cursor is over any part of a particular line. I could then change the cursor shape to show it recognized it as a line. In VB6 I used Me.Point(X,Y) to retrieve the Color at X,Y. How do I do this in C#.NET? >

Loader.
Live Chat Icon For mobile
Up arrow icon