Canvas problem

I am using Canvas to draw some graphics, but when i minimize my application and I restore it the things i've drawn disappears.
So happens also when other window covers my form.
It's very annoying, what should I do ?

Comments

  • try using a timer too update your form regularly
    there must be a function called
    Form1->Update();
    or
    Form1->UpdateForm();
    some thing like that
    Mohammad Nasim
  • : try using a timer too update your form regularly
    : there must be a function called
    : Form1->Update();
    : or
    : Form1->UpdateForm();
    : some thing like that
    : Mohammad Nasim

    Or you can put your drawing stuff in the OnPaint event. (It works for me.)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories