What are the differences methods Refresh() and Invalidate()?

  • Thread starter Alexander Vasilevsky
  • Start date
M

Mattias Sjögren

What are the differences methods Refresh() and Invalidate()?

Invalidate: "Invalidates a specific region of the control and causes a
paint message to be sent to the control."

Refresh: "Forces the control to invalidate its client area and
immediately redraw itself and any child controls."

So Invalidate (which is asynchronous) lets you specify a certain
region whereas Refresh (which is synchronous) affects the entire
client area.


Mattias
 

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