I see the following differences:
- Refresh() forces a control to call invalidate() to itself immediately
(its client area) and also the child controls.
- The Invalidate() causes a paint message to be send to the control.
Example: In a form a picture is added in a client area at run time depending on where the mouse points.
To force the form to be redrawn with the image a call of thisForm.Invalidate() is mandatory;
- The Refresh() could be overriden but no Invalidate().
-obislavu-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.