0

I try to navigate internet explorer using this

    SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer();
    IE.Visible = false;
    IE.Navigate("www.testsite.com");

However, I get this error;

enter image description here

How can I fix that issue ?

user198989
  • 4,574
  • 19
  • 66
  • 95
  • possible duplicate of [Add reference 'SHDocVw' in C# project using Visual C# 2010 Express](http://stackoverflow.com/questions/20845140/add-reference-shdocvw-in-c-sharp-project-using-visual-c-sharp-2010-express) – Rahul Tripathi Aug 28 '15 at 13:44
  • Please post the error message instead of an image. – juharr Aug 28 '15 at 13:45

1 Answers1

1

It seems like you didn't add the right reference in order to use SHDocVw.

Try to add Microsoft Internet Controls reference (in the COM tab), and then you can include SHDOcVw in your class.

Chostakovitch
  • 965
  • 1
  • 9
  • 33