Ok here is my project, I have a form in C# and getting mouse coordinates with mouse_click event. I have a image box and I need to find the coordinates of the buttons on the image (they are part of the image not actual buttons).
Point p2 = PointToClient(Cursor.Position);
string coords = string.Format("({0},{1})", p2.X, p2.Y);
Clipboard.SetText(coords);
This is how I am getting the coordinates, then I created an string array
string[] imgcoor = new string[4];
This is where I want to fwd the coordinates, like first click will give me array[0] which will be x1,y1, second click will be array[1] = x2,y2 and so on and it will be zero after the forth click.
The ultimate goal is to write those coordinates to a txt file later on.
My problem is ok I know they will be in an array but i don't know how to assign them to one. I am new to programming and will appreciate the help and the explanation.
Thank you