> HI,
>
[quoted text clipped - 10 lines]
> // retrieve base document
> HTMLDocument myDoc = new HTMLDocumentClass();
Don't use "new" here. You're creating a document just to destroy it in the
next line of code.
> myDoc = (HTMLDocument) axWebBrowser1.Document;
>
> // this line is incorrect - it doesn't like this syntax
> HTMLFrameElement otxtloginframe = (HTMLFrameElement)
> myDoc.frames("header");
This probably wants to be:
myDoc.frames["header"];
However, I can't be sure, since you didn't include the error you received.
BTW, which version of .NET are you using? There's a managed web browser
control in .NET 2.0.

Signature
John Saunders [MVP]