Creating an Instance of Internet Explorer in C#
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 !!
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

brad 036 reputationPosted Jan 4, 2004, 7:39 PM EST
Mahesh ChandRank #1 · 393.3K reputationPosted Jan 5, 2004, 8:50 AM EST