I need to get information about the applied CSS styles on an HTML page. I used AxWebBrowser and iteration IHTMLDOMNode. I can get all the necessary data and move the code to my application. The problem is that this part works inside the working background, and I got an exception when trying to create an instance of the control.
AxWebBrowser browser = new AxWebBrowser(); ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
Is there a way to solve this or that option other than AxWebBrowser?
martin.malek Sep 13 '09 at 18:21 2009-09-13 18:21
source share