Page 1 of 1

Drag Drop version 3.0

Posted: Tue Jan 23, 2007 4:21 pm
by 9642161
I like the fact that you can now select different objects within the chart and adjust the properties. Can you also detect on a drag and drop where the drop is occuring. As nn example, we have a chart with an XY and need to detect if the drop is occuring on the X axis or the Y axis

Thanks

Posted: Wed Jan 24, 2007 9:11 am
by Chris
Hello histry,

Sure you can detect the drop; try:

Code: Select all

   private void tChart1_MouseUp(object sender, MouseEventArgs e)
    {
      if (tChart1.Axes.Left.Clicked(e.X, e.Y))
      {
        MessageBox.Show("Dropped on X Axis");
      }
    }