SHDocVw.ShellWindows allBrowsers = new SHDocVw.ShellWindows(); if (allBrowsers.Count > 1) { MessageBox.Show("Number active browsers = " + allBrowsers.Count + "." + " Please close all windows and try again..."); throw new Exception("Multiple IE Instances not allow "); } p = Process.Start("iexplore.exe", "http://bing/"); BrowserWindow win = new BrowserWindow(); current.SearchProperties[BrowserWindow.PropertyNames.Name] = "Bing"; if (p == null) throw new Exception("Could not launch IE");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)