Ian

Ian

  • NA
  • 3
  • 0

passing variables

Nov 16 2005 11:15 AM
okay, I've got a program where I get the coordinates of where the mouse clicked in the code for the form:

protected override void OnMouseDown(MouseEventArgs e)
{
           int x, y;
           x = e.X;
           y = e.Y;
           base.OnMouseDown (e);
}

and I want to pass the values of x and y to a separate class and method. How do I do that?


Answers (2)