Click here to Skip to main content
15,920,053 members
Home / Discussions / C#
   

C#

 
AnswerRe: StringConverter - Editing an existing value instead of creating one Pin
Guffa4-Mar-07 10:00
Guffa4-Mar-07 10:00 
QuestionController/GUI in seperate asemblies Pin
MEK34-Mar-07 4:38
MEK34-Mar-07 4:38 
AnswerRe: Controller/GUI in seperate asemblies Pin
S. Senthil Kumar4-Mar-07 7:11
S. Senthil Kumar4-Mar-07 7:11 
QuestionIE Toolbar with visual studio 2005 Pin
ga2144-Mar-07 4:25
ga2144-Mar-07 4:25 
AnswerRe: IE Toolbar with visual studio 2005 Pin
Vasudevan Deepak Kumar4-Mar-07 5:04
Vasudevan Deepak Kumar4-Mar-07 5:04 
GeneralRe: IE Toolbar with visual studio 2005 Pin
Wayne Phipps4-Mar-07 6:25
Wayne Phipps4-Mar-07 6:25 
GeneralRe: IE Toolbar with visual studio 2005 Pin
Vasudevan Deepak Kumar4-Mar-07 15:33
Vasudevan Deepak Kumar4-Mar-07 15:33 
QuestionScanning through directories and subdirectories Pin
Polezniy4-Mar-07 1:01
Polezniy4-Mar-07 1:01 
Hi guys, Smile | :)

I'm kind of short in time, and i need a help regarding some search engine in my code.

So, i have this program which looks for files in the drive c, f.e. , and then shows me the information about this files.

Now the problem is, that the program shows me only the files that are in the directory i chose, but it doesnt looks for files in any sub-directory. D'Oh! | :doh:

I was told that I need to use a recursion, but I am kind of short in knowledge of the way to do it.. Confused | :confused:

Here is the code of the search i have:
private void button2_Click(object sender, System.EventArgs e) 

{ 
System.IO.DirectoryInfo d = new DirectoryInfo("C:\\"); 

if(d.Exists ==true) 
{ 
DirectoryInfo[] fiArr = d.GetDirectories(); 
foreach (DirectoryInfo fri in fiArr) 
GetFiles(fri); 

} 
} 


I was wondering if you could help me with this..
thanks ahead Smile | :) Rose | [Rose]
AnswerRe: Scanning through directories and subdirectories Pin
kubben4-Mar-07 2:00
kubben4-Mar-07 2:00 
GeneralRe: Scanning through directories and subdirectories Pin
Polezniy4-Mar-07 9:50
Polezniy4-Mar-07 9:50 
GeneralRe: Scanning through directories and subdirectories Pin
Wayne Phipps4-Mar-07 10:26
Wayne Phipps4-Mar-07 10:26 
GeneralRe: Scanning through directories and subdirectories Pin
kubben4-Mar-07 11:11
kubben4-Mar-07 11:11 
GeneralRe: Scanning through directories and subdirectories Pin
Polezniy5-Mar-07 5:24
Polezniy5-Mar-07 5:24 
GeneralRe: Scanning through directories and subdirectories Pin
kubben5-Mar-07 5:29
kubben5-Mar-07 5:29 
AnswerRe: Scanning through directories and subdirectories Pin
Colin Angus Mackay4-Mar-07 4:20
Colin Angus Mackay4-Mar-07 4:20 
QuestionC# Denies simple math? :\ Pin
sharpiesharpie3-Mar-07 23:22
sharpiesharpie3-Mar-07 23:22 
AnswerRe: C# Denies simple math? :\ Pin
Christian Graus3-Mar-07 23:31
protectorChristian Graus3-Mar-07 23:31 
AnswerRe: C# Denies simple math? :\ Pin
Guffa4-Mar-07 1:44
Guffa4-Mar-07 1:44 
GeneralRe: C# Denies simple math? :\ Pin
Christian Graus4-Mar-07 2:14
protectorChristian Graus4-Mar-07 2:14 
AnswerRe: C# Denies simple math? :\ Pin
Guffa4-Mar-07 3:19
Guffa4-Mar-07 3:19 
Questionhow to access a c code with c# Pin
mfmaneef3-Mar-07 23:05
mfmaneef3-Mar-07 23:05 
AnswerRe: how to access a c code with c# Pin
Vasudevan Deepak Kumar4-Mar-07 5:23
Vasudevan Deepak Kumar4-Mar-07 5:23 
GeneralRe: how to access a c code with c# Pin
mfmaneef6-Mar-07 21:05
mfmaneef6-Mar-07 21:05 
QuestionPassword Form Pin
krajah103-Mar-07 20:51
krajah103-Mar-07 20:51 
AnswerRe: Password Form Pin
Christian Graus3-Mar-07 23:33
protectorChristian Graus3-Mar-07 23:33 

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.