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

后端 未结 3 1698
旧时难觅i
旧时难觅i 2021-02-18 20:56

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:

3条回答
  •  一个人的身影
    2021-02-18 21:28

    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.

提交回复
热议问题