We can get X and Y points which by mouse move on the picturebox like;
private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
double Xcoordinate = e.X;
double Ycoordinate = e.Y;
label1.Text = Xcoordinate.ToString();
label2.Text = Ycoordinate.ToString();
}
My question How can I get Xcoordinate and Ycoordinate from other events for ex; MouseClick event or my new defined function?
Actually I want to reach XCoordinate and Ycoordinate parameter from FormLoad. How can I do that?