I have a dll that is run from Microsoft Visio when a toolbar button is clicked.
When you click the button a (modal) form (call it A) appears. One of the options on this form is to open another form (call it B). On that form you can either exit or run a Fortran app.
In most cases this means that form B closes and the fortran app runs. When the fortran app is finished running from the dos command window you have to hit a key to exit the dos window.
When you have Windows 2000 and Visio 2000 (or Windows XP and Visio 2000 or 2002) form A is the topmost form and the active form (which is what I want).
For some reason when you have Windows 2000 and Visio 2002 form A then gets hidden behind Visio even though it is the active form and is supposed to be modal.
Another catch is the fortran app can also be run from form A. (again always works fine for other combinations) If the users with Windows 2000 and Visio 2002 always run the application from here there doesn't appear to be a focus issue. Once they run it once from form B the focus problem will be there every time until they reboot.
Any idea why this form seems to be losing focus when you have that particular OS/Visio combination? Any idea how I can force it to keep the focus? I don't have any control over the Fortran app so I can't make it just shut the dos window.
Thanks,
Asya
When you click the button a (modal) form (call it A) appears. One of the options on this form is to open another form (call it B). On that form you can either exit or run a Fortran app.
In most cases this means that form B closes and the fortran app runs. When the fortran app is finished running from the dos command window you have to hit a key to exit the dos window.
When you have Windows 2000 and Visio 2000 (or Windows XP and Visio 2000 or 2002) form A is the topmost form and the active form (which is what I want).
For some reason when you have Windows 2000 and Visio 2002 form A then gets hidden behind Visio even though it is the active form and is supposed to be modal.
Another catch is the fortran app can also be run from form A. (again always works fine for other combinations) If the users with Windows 2000 and Visio 2002 always run the application from here there doesn't appear to be a focus issue. Once they run it once from form B the focus problem will be there every time until they reboot.
Any idea why this form seems to be losing focus when you have that particular OS/Visio combination? Any idea how I can force it to keep the focus? I don't have any control over the Fortran app so I can't make it just shut the dos window.
Thanks,
Asya