Below code I wanna add coordinates of mouse click to a list (I want click 4 times in different places in picturebox) and I want to store coordinates of mouse click in a list
But with this function only store one last coordinates in list (new coordinates replace with last coordinates and can not add to end of list). And my list have only one element always (need to have 4 coordinates for 4 times click in List) (after each click I have new coordinate in textbox3 and I used from List < Point > in list too with same result) thanks for your help
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
List<String> myPoints = new List<String>();
textBox3.Text = e.X + " , " + e.Y;
myPoints.Add(textBox3.Text);
}