Page 1 of 1

Screen coordinates to chart coordinates

Posted: Thu Aug 05, 2010 6:42 am
by 13051032
Hi,

I have a dragDrop event giving me System.Windows.Forms.DragEventArgs in screen coordinates. How can i convert it into chart coordinates (like the myChart.MouseMove event gives System.Windows.Forms.MouseEventArgs)?

Any help is greatly appreciated.

Regards,

Re: Screen coordinates to chart coordinates

Posted: Fri Aug 06, 2010 10:05 am
by 10050769
Hello Asupriya,

Sorry for delay. I think that you can use properties CalcYPos(), CalcPos(), CalcXPos() of Axes that returns chart coordinates.

I hope will helps.

Thanks,