Is the difference between calling a HTML page by it location
(axWebBrowser.Navigate("C:projecthome\home.htm" ref 0, ref 0, ref 0,
ref 0)) and being able to access the frames in that page using
public HTMLWindow2 GetFrame(HTMLDocument myDoc, string name)
{
bool exist = false;
HTMLWindow2 frame = null;
HTMLWindow2 window = (HTMLWindow2)myDoc.parentWindow;
FramesCollection frames = window.frames;
try
{
//Loop through the frames
for (int i = 0; i < frames.length; i++)
{
object index = i;
frame = (HTMLWindow2) frames.item(ref index);
string framename = frame.name;
if (framename == name)
{
exist = true;
break;
}
}
}
catch (exception e)
{
e.message();
}
return frame;
},
Compared to calling a resource DLL with all the same HTML pages
compiled into it, axWebBrowser.Navigate("res://mydll/home.htm" ref 0,
ref 0, ref 0, ref 0)) and not being able to access the frames on that
page with the same code above. I am getting a access denied exception
at line: string framename = frame.name. Has anyone ever tried doing
this? Your help would be greaty appriecated :-)