Occurs when a form or toolbar is repainted.
Syntax
PROCEDURE Object.Paint
Remarks
A form or toolbar is repainted when part or all of the form or toolbar is exposed after it has been moved or sized, or after a window that was covering the form or toolbar has been moved.
Using a Refresh method in a Resize event forces repainting of the entire object every time a user resizes the form or toolbar.
Using a Paint event for certain tasks can cause a cascading event. In general, avoid using a Paint event for the following:
Note A Resize event may be more appropriate for some of these tasks.