how do I create a cross that show the value for the x and y

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I have a panel and in this Panel I have an x-axel and a y-axel.
I have moved origo to be down to the left in the panel.
I can set interval on the x axel and on the y axel.

I can then give input for the x value and the y value. When I have two point
a line is drawn between these points.
I can then continue to enter points and new lines is drawn

Now to my question can somebody tell me how I can create a cross that I can
move with the mouse that
show the value for the x and y where the cross is located.

//Tony
 
Tony said:
Hello!

I have a panel and in this Panel I have an x-axel and a y-axel.
I have moved origo to be down to the left in the panel.
I can set interval on the x axel and on the y axel.

I can then give input for the x value and the y value. When I have two point
a line is drawn between these points.
I can then continue to enter points and new lines is drawn

Now to my question can somebody tell me how I can create a cross that I can
move with the mouse that
show the value for the x and y where the cross is located.

It's one of the standard cursors, I think. Try the System.Windows.Forms.Cursors
class.

-rick-
 
Back
Top