Hi Grisha,
>Explain me please how I can
>bind the WM_ERASEBKGND message to the form with BINDEVENTS
As Hugo pointed out, there are a few samples in VFP 9 that show how to write an event handler. The ID for WM_ERASEBKGND is 0x14. Let us know if you need help with the samples.
>and what is WM_ERASEBKGND
It's one of the windows messages that Windows sends to an application. This particular message tells the form to draw a completely empty form. It's much like issuing a CLEAR command in VFP.
--
Christof