>Hi
>
>I want to run other exe (done by vb) inside my vfp form, with the following things:
>1. my vfp form showwindows=1(in topform) and windows type=modal.
>2.The user will open and close the vb from the form.
>3. the user will work simultaneously on vfp form and on the vb program.
>4. The user will not be able to close the vfp form before he closed the vb program.
>
>PS
>I dont have the VB source code.
You could use FindWindow window function (
http://msdn.microsoft.com/en-us/library/ms633499.aspx) to check from VFP side if VB application open, and if it is done then you could prevent VFP user from closing VFP application.
Edward Pikman
Independent Consultant