>>>Would this work for you?
>>>_SCREEN.WindowState = 2
>
>>Unfortunetely it does not work. I heard (not verified) this noising effect can be avoided with 'themes off', but is very unpleasant to change the look of my applications! Tanks anyway for your reply.
>
>Can you explain in more details what you're trying to do?
Hi Sergey, sorry if I'm late.
I am trying to shift between two application (VFP executable), one iconized the second maximized and so on.., both launched (Run 'thisapplication.exe') from a two different commandbutton of a main form . A different user wanting launch one of these application and ignoring the application is left iconized, click on the commandbutton. The goal is to maximized the application. 'Is_run32()' gets the application still running, so 'showwindow(hwnd,1)' shows the executable. But, as you know, sometimes the application is showed incompletely, without backcolor showing the only caption bar. No trouble, instead, showing the executable iconized, by clicking on the button bar. The idea is to find in some way the coordinates of the application iconized in the button bar and, by program, clicking on it. Simple to say....