Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C#: In what assembly is SHDocVw.WebBrowser_V1 defined?

Tags:

It's used on several websites which all seem to assume the reader knows what to do to have this type available, but I have no clue.

Example site, see the first comment: http://blogs.artinsoft.net/mrojas/archive/2008/09/18/newwindow2-events-in-the-c-webbrowsercontrol.aspx

like image 744
marc40000 Avatar asked Jul 27 '10 16:07

marc40000


1 Answers

It's not an assembly, it's a COM component. Project + Add Reference, Browse tab, select c:\windows\system32\shdocvw.dll. In Windows 7 pick shdocvw.tlb in the same directory instead. This generates the interop library for the COM component with the SHDocVw namespace. WebBrowser_V1 is one of the types you'll get from that.

like image 191
Hans Passant Avatar answered Oct 04 '22 04:10

Hans Passant