I have a script that displays a DialogBox when triggered by a 3rd party application. However, I'm having trouble getting the DialogBox to appear in the foreground when displayed. I tried calling SetForegroundWindow() which only causes my application's icon to blink on the task bar. Furthermore, clicking on the now blinking icon still doesn't move the DialogBox to the foreground. However, If I click on the 3rd party app's icon and then click on my app's icon, the DialogBox then moves to the foreground. Can anyone shed some light on this?
-Dave