Hi,
I have been trying to launch IE through the WebBrowser control by adding a
reference to shdocvw.dll and then creating an instance of the resulting
InternetExplorer class (below). All works fine on WinXP Pro. It fails on
Win2k3.
Although the code below has a catch block to print the stacktrace it never
appears. Any ideas on how to make this work on Win2k3?
Here is the code I am running:
using System;
using SHDocVw;
namespace ietest
{
class IETest
{
[STAThread]
static void Main(string[] args)
{
try
{
InternetExplorer ie = new InternetExplorer();
object o = null;
ie.Navigate("http://www.amazon.com", ref o, ref o, ref o,
ref o);
}
catch(Exception e)
{
Console.Out.WriteLine(e.StackTrace);
}
}
}
}
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com