简体   繁体   English

如何在控件中显示Internet Explorer的历史记录?

[英]How to show Internet Explorer's History in a control?

I just got a requirement to emmbed an IE control into a form, and the user wants to get access to all the browser histories. 我只是要求将IE控件嵌入表单中,而用户希望访问所有浏览器历史记录。

I think the history manager in IE will do this, so how can I emmbed the history manager into my control? 我认为IE中的历史记录管理器会做到这一点,那么如何将历史记录管理器嵌入到我的控件中呢?

Or can I read the history information, put it in a ListView and handle it myself? 或者我可以读取历史记录信息,将其放入ListView中并自己处理?

Thanks 谢谢

See the following CodeProject article: 请参见以下CodeProject文章:

The tiny wrapper class for URL history interface in C# C#中URL历史记录接口的微型包装器类
http://www.codeproject.com/KB/cs/ponta.aspx http://www.codeproject.com/KB/cs/ponta.aspx

This article describes what the UrlHistoryWrapper class is and how to use it. 本文介绍了UrlHistoryWrapper类是什么以及如何使用它。 The UrlHistoryWrapper class is a tiny class that wraps the C# equivalence of the IURLHistory interface in the MSDN document. UrlHistoryWrapper类是一个微型类,用于包装MSDN文档中IURLHistory接口的C#等效项。 They are wrapped into easy to use C# classes. 它们被包装到易于使用的C#类中。 This class provides the following features. 此类提供以下功能。

  1. Enumerate the items in the history cache. 枚举历史记录缓存中的项目。
  2. Place the specified URL into the history. 将指定的URL放入历史记录。 If the URL does not exist in the history, an entry is created in the history. 如果历史记录中不存在该URL,则会在历史记录中创建一个条目。 If the URL does exist in the history, it is overwritten. 如果历史记录中确实存在该URL,则将其覆盖。
  3. Clears history on a per-user basis. 清除每个用户的历史记录。
  4. Queries the history and reports whether a particular URL has been visited by the current user. 查询历史记录并报告当前用户是否访问过特定的URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM