Michael,
You can try the Form.Activate() method, but I am not sure this is the exact
equivalent to the SetForegroundWindow() API.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Michael Wu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I wonder if anyone know how to activate a window with a given window
> handler. I used to do this with the win32 API
>
> static native boolean SetForegroundWindow(int hwnd);
>
> I wonder if there is native support for that within .NET, instead having
to
> call WIN32 API.
>
> Regards
>
> Michael
>
>