Hi!
You can make window as foreground also by using ShowWindow API function with SW_SHOW as second parameter. Is it available in VFP5? I also wondered, is DECLARE-DLL command not avauilable in VFP5?
>>Hi!
>>
>>These two could be a problem. After forms are shown, use SetForegroundWindow() API function to make it active manually. You can find the HWND value for this API function using the FindWindow API function.
>>
>>>
During startup _SCREEN is made visible and invisible;
>>>
>>>During startup another task is created (all in same datasession);
>>>
>
>Vlad, I followed the discussion with Chris (Setting Focus to Top Level Form) and though I have a code-example now, I don't think I can get this to work;
>In VFP5 there seems no _SetForehandWindow API.
>BTW, if another task is at the taskbar (so, minimized), my input is in this other task. I guess if no task is there, my input is at the desktop ? (didn't check that).
>I just tried for another hour, but can't get around this anoying thing...
>
>I can resize the forms, maximize them etc., perform a SetFocus on the Control of the form, but it remains inactive.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.