Painting form (flickering)

  • Thread starter Thread starter Halimaji Nijazi
  • Start date Start date
H

Halimaji Nijazi

Hi everybody

On my form I have a procedure, which moves some textboxes and buttons...
then it makes some validations... after this it moves the objects again.

So far so good... But now I have the problem, that the form flickes every
time I move an object.

Overriding onpaint, onbackgroundpaint and refresh won't help, because after
moving the object the last time i have to call mybase.refresh and release
the event calling the mybase-events... Doing this let the form flickers
again. So I see for a short time the movements I have made...

So my question now is: How can i completely disable the painting of the
form, and when I enable it and refresh the form, it should only show the
current objects whithout "history".

Thanks for your help

Regards

Nijazi Halimaji
 
SuspendLayout()

If you look at the InitializeComponent() method of any form, you can see
the proper use of it.

Tom
 
Halimaji said:
Hi everybody

On my form I have a procedure, which moves some textboxes and buttons...
then it makes some validations... after this it moves the objects again.

So far so good... But now I have the problem, that the form flickes every
time I move an object.
I've never tried it, but how about the Forms "DoubleBuffered" property?
Please post back your findings for all to share.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
 
Back
Top