repainting problem

  • Thread starter Thread starter Jesse Aufiero
  • Start date Start date
J

Jesse Aufiero

Hello all,

I have many buttons on a form and at the bottom of the form is a grid that
behaves as though it is 'retractable' - at various times during the life of
the app, the grid becomes taller and conceals the many buttons below it.
That transition is fine.

The problem is that when the grid retracts back down to the bottom portion
of the form, to reveal the many buttons underneath it, the repainting is
slow and ugly.

Is there a way to manipulate the painting of the form so that this
transition is more attractive?

Thank so much,
Jesse
 
hmmm, is there a way to prevent the repainting till the end, and then update
the form all at once? I HAVE to think that if you can do this in Access VBA
(docmd.echo false.... docmd.echo true), that you can do it in vb.net.

What I'm getting by using me.update is the same result. I can literally see
the buttons form on the page one at a time.

Thank you.
 
You might check out double buffering!

Jesse Aufiero said:
hmmm, is there a way to prevent the repainting till the end, and then update
the form all at once? I HAVE to think that if you can do this in Access VBA
(docmd.echo false.... docmd.echo true), that you can do it in vb.net.

What I'm getting by using me.update is the same result. I can literally see
the buttons form on the page one at a time.

Thank you.
 
Hi,

In the forms new event enable double buffering.

http://msdn.microsoft.com/library/d...stemwindowsformscontrolclasssetstyletopic.asp

Ken
----------------
Hello all,

I have many buttons on a form and at the bottom of the form is a grid that
behaves as though it is 'retractable' - at various times during the life of
the app, the grid becomes taller and conceals the many buttons below it.
That transition is fine.

The problem is that when the grid retracts back down to the bottom portion
of the form, to reveal the many buttons underneath it, the repainting is
slow and ugly.

Is there a way to manipulate the painting of the form so that this
transition is more attractive?

Thank so much,
Jesse
 
Jesse,

Why don't you set the buttons above it (and use a toolbar for that)?

Just a thought,

Cor
 

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

Back
Top