Evan,
That may be so and it may well be the application, but based on my
experience with an old VB6 application I wrote I beleive that Windows
7 (and Vista) do not necessarily handle opening Windows correctly.
I've seen the problem as far back as at least Win98, and with lots of
different software including things like Office, Quicken, and a host of
others including my own where I know exactly what code I am using.
I rarely see it when only running a single monitor, so I think it may have
something to do with how Windows handles multiple monitors.. I have never
been able to nail down exact repeatable steps to create the problem (hence
have never filed a bug report with MS), but it *seems* the problem is worse
on my Win7-64 installation than my previous Windows versions.
And it seems to happen more often to dialog boxes than main application
windows. Where I see it the most in Win7 is various UAC dialogs, especially
when running a *.msi installer. The dialog will pop *under* other
applications and if I don't notice the task bar icon it is a pain. All the
UAC stuff and (AFAIK) the MSI installer is strictly MS code that I cannot
control.
More rarely, I have had it occur from my own VBA code in Access 2007 when I
try to launch another application and make it the active foreground
application using:
Shell path\app.exe, vbNormalFocus
Usually, it will start the application and the window will be in the
foreground. Rarely, but unrepeatable, it will not come to the foreground.
I don't think there is anything "wrong" with the above code to cause the
problem, and I can't recreate it at will. So I continue to live with it.
But I see it way more often on dialogs from other programs, especially UAC
and msi installers, then I do from my own code.
FWIW,
Doug
As an Amazon Associate we earn from qualifying purchases.