Painting form (flickering)

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
 
T

tomb

SuspendLayout()

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

Tom
 
S

ShaneO

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top