如何显示在控制IE浏览器的历史记录? [英] How to show Internet Explorer's History in a control?

查看:261
本文介绍了如何显示在控制IE浏览器的历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚得到一个要求emmbed的IE控件到表单中,用户希望获得所有浏览器的历史记录。

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中会做到这一点,所以我怎么能emmbed历史经理到我的控制?

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

还是可以的我读了历史信息,把它放在一个ListView和处理它自己?

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

感谢

推荐答案

请参阅以下CodeProject上的文章:

See the following CodeProject article:

在C#中的URL历史接口微小的包装类结果
http://www.codeproject.com/KB/cs/ponta.aspx

本文介绍了什么UrlHistoryWrapper类,以及如何使用它。该UrlHistoryWrapper类是一个很小的类,它封装了MSDN文档中IURLHistory接口的C#等价。它们被包装成易于使用的C#类。这个类提供了以下功能。

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. 枚举在历史
    缓存中的项目。

  2. 将指定的URL到
    的历史。如果该URL不在历史存在
    ,一个条目被创建
    中的历史。如果URL确实
    在历史里存在,它是
    覆盖。

  3. 清除在每个用户的基础上的历史。

  4. <李>查询历史记录和报告
    特定的URL是否已经
    由当前用户访问。
  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.

这篇关于如何显示在控制IE浏览器的历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆