
WebBrowser Control issues
I'm trying to use the WebBrowser control (or variant) to
automate some navigation through a site. One of the
problems I'm having is that some of the interfaces don't
seem to be implemented in the components that I'm using.
For example, I tried using the example from this thread
( http://www.*-*-*.com/
px?id=33508&Page=1). It works fine on a page with no
frames. The problem comes when I try to access the frames
property on the HTMLDocument returned in this example--it
throws an exception such as 'No such interface supported'
on this call. I have been able to use the frames property
on the documents returned from an
AxSHDocView.AxWebBrowser that is on a Windows Form, but
not from the SHDocVw.InternetExplorer class. Has anyone
found a way to do this?
Alternatively I wouldn't mind using the AxWebBrowser
control instead of the InternetExplorer class. However, I
have tried using the threading technique shown in the
example linked above in a Windows Form that contains an
AxWebBrowser control, but it seems to get hung at the
Monitor.Wait(..) call. Any suggestion as to how to get
around this?
Thanks for any suggestions/tips.