摘要: DirectoryInfo TheFolder=new DirectoryInfo("c:\\"); foreach(DirectoryInfo NextFolder in TheFolder.GetDirectories()) this.listBox1.Items.Add(NextFolder.Name); foreach(FileInfo NextFile in TheFolder.GetFiles()) this.listBox2.Items.Add(NextFile.Name); 阅读全文
posted @ 2011-11-12 20:38 softimagewht 阅读(209) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/zhs1021/blog/item/52255d43e5a24d079313c6e0.htmlhttp://www.cnblogs.com/zhaojingjing/archive/2011/01/21/1941586.html 阅读全文
posted @ 2011-11-12 19:23 softimagewht 阅读(228) 评论(0) 推荐(0)
摘要: private void Form1_DragDrop(object sender, DragEventArgs e) { string fullPath = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString(); string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx” string extension = System.IO.Path.GetExtension(fullPath);//扩展名 “.a. 阅读全文
posted @ 2011-11-12 08:51 softimagewht 阅读(168) 评论(0) 推荐(0)