Try following
DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
LockWindowUpdate(_Screen.HWnd)
lnWidth = Thisform.Width
Thisform.WindowState=2
Thisform.Width = lnWidth
Thisform.AutoCenter= .T.
LockWindowUpdate(0)
I don't see any flickering or flashing when I use this code.
>>>If I set _Screen.ActiveForm.Height = _Screen.Height and _Screen.ActiveForm.AutoCenter=.T. the top of the form is hidden and _Screen.ActiveForm.Top show -35 (different for different screen resolutions).
>>>
>>>How can I find the available height of the _Screen so I can prevent this?
>>>
>>>TIA
>>
>>You can use SYSMETRIC() to calculate it or can let VFP do the work.
Thisform.LockScreen = .T.
>>lnWidth = Thisform.Width
>>Thisform.WindowState=2
>>Thisform.Width = lnWidth
>>Thisform.AutoCenter= .T.
>>Thisform.LockScreen = .F.
>>
>
>Hi Sergey,
>
>If I could set WINDOWSTATE=2 for an instant without the form flashing, that would do it, but it always flashes even with LOCKSCREEN=.T. Is there some way to keep it from flashing?
--sb--