2
Answers

passing variables

Ian

Ian

19y
1.5k
1
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)