所以我也跟着MS文章http://msdn.microsoft.com/en-us/library/ms171645.aspx 這是使用ListView和TreeView控件使用設計器創建一個資源管理器風格的界面。 所以一切都很好,howerver,是你將它設置爲C的根掃描所有文件夾和文件等我收到{"Access to the path '<path to file' is denied."} V
我想線程下面的函數,以便背景形式可以繼續移動,不會'凍結',任何人都可以幫助我這樣做? public IEnumerable<string> GetFiles(string path)
{
Queue<string> queue = new Queue<string>();
queue.Enqueue(path);
while (queue.Count