Win32 API SetWindowPos still works fine for me.
Have some code:
http://www.smithvoice.com/netinstance.htm
Your snippet mixed into that would be interesting.
Robert Smith
Kirkland, WA
"Charles A. Lackman" <> wrote in message
news:%...
> Hello,
>
> I have created an application that searches to see if a process is running
> and if it is it maximizes it's window.
>
> i.e.
>
> For Each AProcess In AProcesses
> If AProcess.StartInfo.WindowStyle <> ProcessWindowStyle.Maximized Then
> AProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized
> ShowWindow(AProcess.MainWindowHandle, 3)
> End If
> Next
>
> Is there also a way to make the window "BRING TO FRONT" also?
>
> Thanks,
>
> Chuck
>