Hi, I am having trouble getting a web browser in my form to work. When I run, I get this error ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
It takes me to the form designer.cs file to this text this.webBrowser2 = new System.Windows.Forms.WebBrowser(); and I really do not know what to do to get thebrowser working.
Thanks
How to fix ActiveX control '8856xxxx-xxxxl cannot be instantiated error in C#?
Started by nighthawk, Oct 20 2011 06:18 PM
2 replies to this topic
#1
Posted 20 October 2011 - 06:18 PM
|
|
|
#2
Posted 21 October 2011 - 06:42 PM
Please I need help this happens on every form I create every browser I add. I read through another forum it said something about [STAThread] in the program.cs its already there doesn't work same with [MTAThread]
#3
Posted 22 October 2011 - 12:37 PM
Please sorry for double post but i need help!!!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









