2
Answers

Creating an Instance of Internet Explorer in C#

bill_domenz

bill_domenz

20y
2.7k
1
AnyBody out there used this in a stand alone exe ? If so How'd did ya get to work? Works excellent if run from the compiler. using SHDocVw; private void goButton_Click(object sender, System.EventArgs e) { OpenBrowser(url.Text); } private void OpenBrowser(string url) { SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass(); IWebBrowserApp wb = (IWebBrowserApp) ie; wb.Visible = true; object o = null; wb.Navigate(url, ref o, ref o, ref o, ref o); } else I recive debug errors: ************** Exception Text ************** System.IO.FileNotFoundException: File or assembly name Interop.SHDocVw, or one of its dependencies, was not found. File name: "Interop.SHDocVw" Any and I mean Any help would be greatly appreciated !!

Answers (2)