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

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
 
R

Rick Lones

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-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top