I want to open a hidden Internet Explorer window without stealing focus. I have a Timer object that opens Internet Explorer every 5 minutes to check the site for updates. The problem is that every time he checks for updates, he intercepts the focus from the current application in the foreground. The following is a way to start the process:
Process m_Proc = new Process(); m_Proc.StartInfo.Arguments = String.Format("{0}{1}", "-nomerge ", browserURL); m_Proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; m_Proc.StartInfo.UseShellExecute = true; m_Proc.StartInfo.CreateNoWindow = true; m_Proc.StartInfo.FileName = String.Format("iexplore.exe"); m_Proc.Start();
He always steals focus, even when he is hidden. I want it to start as if nothing was happening, so users can continue to work on what they are doing. Thanks.
source share