AddDirectories()请教这个方法

SuperTyro 2008-06-11 11:11:26
我在常识做一个 模仿资源管理器的 程序

其中盘副时 想用到这个 方法 可是 为什么 总提示我 没有名空间呢?
下面是 部分代码
private void Form1_Load(object sender, System.EventArgs e)
{
string[]drives=Environment.GetLogicalDrives();
for(int i=0;i<drives.Length;i++)
{
TreeNode cRoot=new TreeNode(drives[i]);

this.tvwinfo.Nodes.Add(cRoot);
AddDirectories(cRoot);
}
}

下面是我导入的名空间
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
//using WeifenLuo.WinFormsUI;
//using System.Diagnostics;
//using System.Runtime.InteropServices;
注释掉的3个 是 baidu 搜索的 也都不可以啊

求教!
...全文
83 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
我姓区不姓区 2008-06-12
  • 打赏
  • 举报
回复
AddDirectories是自定义函数吧
SuperTyro 2008-06-12
  • 打赏
  • 举报
回复
我晕掉了 方法需要自己手写

崩溃了...

散分离去了
amandag 2008-06-11
  • 打赏
  • 举报
回复
总提示我 没有名空间呢?
==
那一行提示?
whycom 2008-06-11
  • 打赏
  • 举报
回复
AddDirectories .net 框架没有提供这个函数

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧