>thank you for your answer. your code is very powerfull but instead of :
>
>FOR EACH oInstance OF oIEColl
>
>you should write :
>
>FOR EACH oInstance in oIEColl
>
>this idea comes from Erik Moore #010229.
>
>i have now another problem.
>i want to write a program that is started with windows and works in memory.
>whenever an IE instant starts this program is activate.
>how can i do it ?
That's going to involve custom code linked to the IE startup; if this needs to be applied outside of VFP (eg. the instance of IE is not spawned by VFP) you'll need to add code somehow to the initialization or navigate methods of InternetExplorer.Application - probably VBScript or JScript is the most suitable language for the task.