I want to take the variable xx from another class (Class2) and set it equal to the variable mouseX from form1.cs.
Example code from form1.cs:
private void canvas_MouseClick(object sender, MouseEventArgs e)
{
mouseX = Cursor.Position.X;
mouseY = Cursor.Position.Y;
//I am thinking here I could do Class2.xx = mouseX in order to set the variable xx
// equal to the newly acquired mouseX value, but this is not the case
}