On Fri, 06 Jun 2008 09:34:00 -0700, AA2e72E
<AA*****@discussions.microsoft.comwrote:
I can do this quite easily using Win32 APIs from unmanaged code; I am
trying
to avoid unmanaged code.
Based on your description, I don't think that will be possible. But,
using p/invoke for the one function you need (SetForegroundWindow)
shouldn't really be an issue, especially given that you're already
basically messing around with unmanaged stuff anyway.
Note, of course, the limitations on SetForegroundWindow. Assuming your
own application is already in the foreground, you should be fine. But
it's not a panacea.
Pete