how to use System.Windows.Forms.WebBrowser in a class library (navigation events aren't received)
Hi,
I am trying to write a class library that inserts page breaks in an existing
html by loading it into a System.Windows.Forms.WebBrowser and then using
mshtml to invesigate page's content. It works fine in a Windows Form but in
a class library I don't receive the DocumentCompleted event or the Navigated
event. After calling the Navigate method, the wb.Document property is not
null, but the wb.Document.Body property is. Is there something special that
needs to be done when using System.Windows.Forms.WebBrowser in a class
library?
Thanks
Date:Thu, 23 Aug 2007 07:16:42 -0500
Author:
|