Question store location value (x,y) in array

sth_syed

Member
Joined
Aug 26, 2010
Messages
6
Programming Experience
Beginner
I am getting the location value by moving mouse.

Now I want to store that location value.

Then Draw the line as i moved the mouse.

Thanks in Advance.
 
As JohnH says, use a List(Of Point) to store the values. If you want to draw lines through all the points though, you'll need to call DrawLines rather than DrawLine. It takes an array of Points so you can call ToArray on your List to get one.
 
Back
Top