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

发布于 2024-08-06 01:59:54 字数 149 浏览 3 评论 0原文

我刚刚收到将 IE 控件嵌入到表单中的要求,并且用户希望访问所有浏览器历史记录。

我认为 IE 中的历史管理器会执行此操作,那么如何将历史管理器嵌入到我的控件中呢?

或者我可以读取历史信息,将其放入ListView中并自己处理吗?

谢谢

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.

I think the history manager in IE will do this, so how can I emmbed the history manager into my control?

Or can I read the history information, put it in a ListView and handle it myself?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软的没边 2024-08-13 01:59:54

请参阅以下 CodeProject 文章:

C# 中 URL 历史记录接口的微型包装类
http://www.codeproject.com/KB/cs/ponta.aspx

本文介绍什么是 UrlHistoryWrapper 类以及如何使用它。 UrlHistoryWrapper 类是一个微型类,它包装了 MSDN 文档中 IURLHistory 接口的 C# 等效项。它们被包装到易于使用的 C# 类中。此类提供以下功能。

  1. 枚举历史记录中的项目
    缓存。
  2. 将指定的 URL 放入
    历史。如果网址不存在
    在历史记录中,创建了一个条目
    历史上。如果 URL 是
    历史上存在的,就是
    被覆盖。
  3. 清除每个用户的历史记录。
  4. 查询历史记录和报告
    特定 URL 是否已被
    当前用户访问过。

See the following CodeProject article:

The tiny wrapper class for URL history interface in C#
http://www.codeproject.com/KB/cs/ponta.aspx

This article describes what the UrlHistoryWrapper class is and how to use it. The UrlHistoryWrapper class is a tiny class that wraps the C# equivalence of the IURLHistory interface in the MSDN document. They are wrapped into easy to use C# classes. This class provides the following features.

  1. Enumerate the items in the history
    cache.
  2. Place the specified URL into the
    history. If the URL does not exist
    in the history, an entry is created
    in the history. If the URL does
    exist in the history, it is
    overwritten.
  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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文