title: Error using interop.Shdocvw
body: <p>I was trying to connect to web browser control but it continuously threw exception that iwebbrowser2 should implement iwebbrowser2  something like this ,then i googled and found solution to this ,chose com objects then from there microsoft web browser after chosing i got control to apply on form and i did.</p>
  <p>next wrote code</p>
  <pre><code>var t = new Thread(() =&gt;
  {
      Form1 frm1 = new Form1();
      
      //new FormDialogWatcher(frm1.Handle);
      Settings.AutoStartDialogWatcher = false;
      var ie = new IE( frm1.WebBrowser1);
      
      ie.GoTo(&quot;http://www.google.com&quot;);
  });
  t.SetApartmentState(ApartmentState.STA);
  t.Start();
  </code></pre>
  <p>as other threads at stack overflow suggest.added reference introp.SHdocve but when i build 68 errors occured:</p>
  <blockquote>
  <p>Error  64</p>
  <p>Cannot embed interop type 'SHDocVw.tagREADYSTATE' found in both assembly 'e:\XMLreader\lib\Interop.SHDocVw.dll' and 'e:\XMLreader\XMLreader\obj\x86\Debug\Interop.SHDocVw.dll'. onsider setting the 'Embed Interop Types' property to false.</p>
  </blockquote>
  <p>I right clicked at this dll and changed embed interop to false but with no effect.</p>
  <p>I commented out <code>var ie = new IE( frm1.WebBrowser1);</code>and all 68 errors were gone.</p>