如何在控件中显示 Internet Explorer 的历史记录?
我刚刚收到将 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅以下 CodeProject 文章:
C# 中 URL 历史记录接口的微型包装类
http://www.codeproject.com/KB/cs/ponta.aspx
本文介绍什么是 UrlHistoryWrapper 类以及如何使用它。 UrlHistoryWrapper 类是一个微型类,它包装了 MSDN 文档中 IURLHistory 接口的 C# 等效项。它们被包装到易于使用的 C# 类中。此类提供以下功能。
缓存。
历史。如果网址不存在
在历史记录中,创建了一个条目
历史上。如果 URL 是
历史上存在的,就是
被覆盖。
特定 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.
cache.
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.
whether a particular URL has been
visited by the current user.