Have you tried thisform.lockscreen=.T. before you change windowstate, and thisform.lockscreen=.F. after?
>In a test form that has no titlebar and no border, i.e.
>
> Thisform.TitleBar= 0
> Thisform.BorderStyle= 0
>
>
>there is code to change the WindowState to Maximum. In a simple example, a command button on a form does this:
>
>
>Wait Window 'WindowState to: normal'
>Thisform.WindowState= 0
>
>Wait Window 'WindowState to: max'
>Thisform.WindowState= 2
>
>
>The problem is that the title bar flashes on briefly while it is changing the WindowState. Is there a way to avoid the Windows title flashing on then off when maximizing the form via code?
>
>Cyril.