Problem with refreshing the window

  • Thread starter Thread starter borhan
  • Start date Start date
B

borhan

Hi, I am coding a drawing application, where you draw freely on a
form. My problem is, when ever the form is painted [ a window
overlaps my window or for is resized ] the drawn shapes are deleted.
I hope that windows forms would handle this but it didn't. Now what
should I do ?

Note: As the drawing is free hand drawing I do not have any images to
reload. Is there a way to take the snapshot of a region of the form
or the control and then reload on paint ?

Any kind of suggestions are very much appreciated,

thanks in advance,
 
Hi, I am coding a drawing application, where you draw freely on a
form. My problem is, when ever the form is painted [ a window
overlaps my window or for is resized ] the drawn shapes are deleted.
I hope that windows forms would handle this but it didn't. Now what
should I do ?

If you've not already done so, have a look at the Scribble sample in
your MSDN documentation.

Dave
 
Back
Top