AxWebBrowser操作frames

 

 

object j;
            for (int i = 0; i < document.parentWindow.frames.length; i++)
            {
                j = i;
                HTMLWindow2Class frame = document.parentWindow.frames.item(ref j) as HTMLWindow2Class;
                MessageBox.Show(frame.name + "_" + j);
            }

 

mshtml.HTMLWindow2Class w2 = (mshtml.HTMLWindow2Class)document.frames.item(ref   oFrameIndex);
            mshtml.HTMLDocument documet2 = (mshtml.HTMLDocument)w2.document;

你可能感兴趣的:(WebBrowser)