This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15625|Reply: 0

[WinForm] ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated...

[Copy link]
Posted on 5/23/2016 12:32:52 PM | | |
ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment
{"ActiveX control "8856f961-340a-11d0-a96b-00c04fd705a2" cannot be instantiated because the current thread is not in a single-threaded unit. ”}

WebBrowser web = new WebBrowser();   WebBrowser is my new one, not a drag on it


When I new, an error will be reported, I wrote it in the thread, but I didn't expect the new control to be written to the main UI thread.


So define the commission, and then don't report the error!








Previous:Prohibit win10 update prompts and completely block win10 update prompts
Next:c# httpwebrequest to get the page with 302 redirect
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com