470,596 Members | 1,514 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

Help with using a Resource DLL, please

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;
//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;
catch (exception e)

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 :-)

Jul 6 '06 #1
0 1122

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by KMILO | last post: by
reply views Thread by Steve B. | last post: by
5 posts views Thread by archana | last post: by
8 posts views Thread by skumar434 | last post: by
3 posts views Thread by Chuck Renner | last post: by
15 posts views Thread by Jay | last post: by
3 posts views Thread by Robert Dufour | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.