为什么查找不到path的类型。。求救求救!!!!
using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SHDocVw;
namespace test
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
this.listBox1.Items.Clear();
// 取得目前 Shell 的所有視窗
SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindowsClass();
foreach (SHDocVw.InternetExplorer ie in shellWindows)
{
// 判斷視窗是否為 iexplore
if (Path.GetFileNameWithoutExtension(ie.FullName).ToLower().Equals("iexplore"))
{
this.listBox1.Items.Add(ie.LocationURL);
}
}
}
}
}
求救求救。。为什么编译时候找不到path。。有熟悉控制ie的人请假下吗 --------------------编程问答-------------------- 最前面加一句
using System.IO; --------------------编程问答-------------------- Using System.IO;
补充:.NET技术 , C#