Click here to Skip to main content
15,887,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 2:04
Anders Hedén20-Jan-12 2:04 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn20-Jan-12 2:17
sitebuilderLuc Pattyn20-Jan-12 2:17 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 3:49
Anders Hedén20-Jan-12 3:49 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 8:47
Anders Hedén20-Jan-12 8:47 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn20-Jan-12 18:23
sitebuilderLuc Pattyn20-Jan-12 18:23 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén21-Jan-12 23:46
Anders Hedén21-Jan-12 23:46 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn22-Jan-12 3:40
sitebuilderLuc Pattyn22-Jan-12 3:40 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén22-Jan-12 10:25
Anders Hedén22-Jan-12 10:25 
Hmm I'm not quite following sorry, but should it be something like this?

C#
IEnumerable<string> dirs= Directory.EnumerateDirectories(folderBrowserDialog1.SelectedPath);
GetDirs(dirs);

public void GetDirs(IEnumerable<string> dirs)
{
    foreach (var dir in dirs)
    {
            IEnumerable<string> subdir = Directory.EnumerateDirectories(dir);
            if (subdir.Any())
            {
                GetDirs(subdir);
            }
    }
}

Some questions
How come the folderbrowserdialog can access the all the systemvolumes with folders and files directly?

In my application I want the user to select folders in the treeview (I want these path to the user selected folders), can I do that in some other way? Maybe should start a new thread for that Laugh | :laugh: !
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn22-Jan-12 10:43
sitebuilderLuc Pattyn22-Jan-12 10:43 
AnswerRe: Getdirectories performance problems Pin
Shameel20-Jan-12 2:18
professionalShameel20-Jan-12 2:18 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 4:05
Anders Hedén20-Jan-12 4:05 
AnswerRe: Getdirectories performance problems Pin
Shameel20-Jan-12 4:56
professionalShameel20-Jan-12 4:56 
AnswerRe: Getdirectories performance problems Pin
BobJanova20-Jan-12 2:32
BobJanova20-Jan-12 2:32 
AnswerRe: Getdirectories performance problems Pin
Pete O'Hanlon20-Jan-12 2:49
mvePete O'Hanlon20-Jan-12 2:49 
QuestionProblem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz19-Jan-12 23:20
Jaffer Mumtaz19-Jan-12 23:20 
AnswerRe: Problem Copying Raw RGB Data to Bitmap Pin
Luc Pattyn19-Jan-12 23:50
sitebuilderLuc Pattyn19-Jan-12 23:50 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz19-Jan-12 23:55
Jaffer Mumtaz19-Jan-12 23:55 
AnswerRe: Problem Copying Raw RGB Data to Bitmap Pin
BobJanova20-Jan-12 2:17
BobJanova20-Jan-12 2:17 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz21-Jan-12 7:31
Jaffer Mumtaz21-Jan-12 7:31 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
BobJanova21-Jan-12 10:59
BobJanova21-Jan-12 10:59 
QuestionTime taken to load a contrl Pin
Subin Mavunkal19-Jan-12 19:15
Subin Mavunkal19-Jan-12 19:15 
AnswerRe: Time taken to load a contrl Pin
BillWoodruff19-Jan-12 20:15
professionalBillWoodruff19-Jan-12 20:15 
AnswerRe: Time taken to load a contrl Pin
V.19-Jan-12 20:27
professionalV.19-Jan-12 20:27 
AnswerRe: Time taken to load a contrl Pin
Luc Pattyn19-Jan-12 21:51
sitebuilderLuc Pattyn19-Jan-12 21:51 
AnswerRe: Time taken to load a contrl Pin
BobJanova19-Jan-12 22:13
BobJanova19-Jan-12 22:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.