Hey!
I have some trouble with drawing on picturebox in visual studio c#. I want do draw a line between 2 points that i get either with mouse clicks or with inserting coordinates manualy.
So i have created 2 events, picterbox paint event where i made a pen and graphics, and mouse click event where i want to store mouse clicks so i can connect two points. I dont know how to properly store those two clicks. I was doing something wit e.Location but it doesnt register the second click and always stores my first click so i dont draw nothing because of that. So can someone pls tell me what is the best way to store the clicks so i can later use them in g.drawline(p,point1,pont2)...
Ty for your help