0

I'm calling from3 from my form1 and its giving this error in InitializeComponent()

Form3 frm = new Form3();
        frm.Show();

Error "ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."

from3 is having a WebBrowser control and my from1 is running a backgroundworker

thnx

1Mayur
  • 3,419
  • 5
  • 40
  • 64
  • 1
    You can't displays forms on a backgroundworker thread. The thread isn't initialized correctly and does not pump a message loop. – Hans Passant Sep 20 '11 at 17:54
  • possible duplicate of [C# WebBrowser Control in a new thread](http://stackoverflow.com/questions/4269800/c-webbrowser-control-in-a-new-thread) – Hans Passant Sep 20 '11 at 17:55

0 Answers0