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

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
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
 
Back
Top