arijitbhowmik
asked on
To retain a line on the screen.
I am trying to draw line between points LBUTTONDOWN and LBUTTONUP.But cannot retain the previous line when trying to draw the subsequent line.How can i retain the previous lines on the screen.
could you post the relevant sections of your code please the LBUTTONDOWN and UP code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Norbert is right, Why I wanted to post your code is this, Now normally if you are storing the point in button up event and using Lineto in down event the line is drawn. But if in these events if you are calling Invalidate(), then all the drawn lines dissapear, You'll have to have a mechanism to store these points and draw lines in OnDraw()