Good day.
My name is Eugene.
I have a problem with WebBrowser control from .NET FrameWork 2.0 in my project.
My project is Form with WebBrowser control on it.
I'm loading in WebBrowser other project (ActiveX Document DLL from Visual Studio 6.0):
webBrowser1.navigate("C:\\Test.vbd");
Next, I'm receive the event:
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (webBrowser1.Document != null)
{
// trying get public properties of "Test.vbd" project
}
}
All it's well, but webBrowser1.Document property always equal null.
Although the page loaded correct and event is raising, I can't get access
to the "Test.vbd" interface.
When I use old WebBrowser control (from Visual Studio 6.0) in my C# project,
I get access to "Test.vbd" interface with "pDisp" parameter of event:
void objBrowser_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
SHDocVw.IWebBrowser2 pIBrowser = (SHDocVw.IWebBrowser2)e.pDisp;
...
Can you help me? How can I use new WebBrowser control to get access to "Test.vbd" interface?
Thank you.