Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器 软件资源

软件开发小程序制作系统集成与运维空间租用硬件开发视频监控技术咨询与支持——联系电话:0311-88999002/88999003

首页 / 网页编程 / ASP.NET / 获取所有IE当前浏览的Url

获取所有IE当前浏览的Url2012-01-12 csdn博客 jinjazz
using System;using System.Windows.Forms;using SHDocVw;namespace WindowsApplication35...{  public partial class Form1 : Form  ...{    public Form1()    ...{      InitializeComponent();    }    private void Form1_Load(object sender, EventArgs e)    ...{      ShellWindowsClass shellWindows = new ShellWindowsClass();      foreach (InternetExplorer ie in shellWindows)      ...{        string filename = System.IO.Path.GetFileNameWithoutExtension(ie.FullName).ToLower();          if (filename.Equals("iexplore"))        ...{          Console.WriteLine(ie.LocationURL);        }      }    }    }}