>Simple and cool solution!
>But I did a test here and the result, when I maximized the form, wasn't the waited. The background isn't full gradient. In the left botton side continued with default background color (gray). My form start like a little form, so I click on maximize window button and the problem happen. I think that VFP run the code before the form be whole resized.
>P.S.: I didn't think about a solution, yet. I only did a test. 8-)
Weird, I never noticed that, I guess I never really maximized my form via the maximize button. I don't see it happen when you resize by dragging the borders.