The problem is you can't make calls from outside the thread that created the Document object. In other words, you must make Document calls from within the same thread.So instead of threadpool, gonna have to fake it with some kind of array of STA threads. Ugh...! 好像是线程问题
提示Specified cast is not valid.
HTMLDocument doc = (HTMLDocument)webBrowser1.Document.DomDocument;
HTMLWindow2Class frame = doc.parentWindow.frames.item(ref j) as HTMLWindow2Class;
http://topic.csdn.net/u/20091122/22/521caf78-eea6-4b1a-b904-c58a2fe50215.html
好像是线程问题