user198989
user198989

Reputation: 4663

The type or namespace name could not be found - C#

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 ?

Upvotes: 0

Views: 478

Answers (1)

Chostakovitch
Chostakovitch

Reputation: 965

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.

Upvotes: 1

Related Questions