I am using an embedded resource in a C# application that uses an
axWebBrowser control to displays HTML pages. The resource dll is using
C++.
Using the res://mydll/homepage.htm, the home page loads into the web
browser control (axWebBrowser.Navigate), with no problems. This page
has frameset, so when I try to access the document frames, I get an
exception Access Denied.
I am using code similar to this to access the frames:
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
FramesCollection c = myDoc.frames;
Object o = i;
i++;
Object c1 =null;
try
{
c1 = c.item(ref o);
}
catch(Exception ex)
{
Console.WriteLine(ex.Message)
}