Board index » off-topic » Application.BringToFront/SetForegroundWindow doesn't work as expected in 2000/xp

Application.BringToFront/SetForegroundWindow doesn't work as expected in 2000/xp


2003-10-13 09:41:52 PM
off-topic11
I have a D7 app that generates various documents and displays them using MS
word. When word closes the app is supposed to regain focus so that the user
can continue from where he was. I've tried both Application.BringToFront and
SetForegroundWindow in an attempt to do this but all that happens is that
the app icon flashes in the task bar and has to be clicked on for the window
to display itself again. This happens if the user has other apps open.
e.g. Outlook is open and the D7 app. D7 app calls word to display the
report. User closes word. App detects that word is closed and calls
BringToFront. But Outlook now has focus and the D7 app's icon is flashing in
the task bar!
This technique works fine on Win98 but not on Win2000/XP.
Any ideas?
Thanks
Dominic
 
 

Re:Application.BringToFront/SetForegroundWindow doesn't work as expected in 2000/xp

oops posted to wrong group - reposted in rtl group! :)