Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
AnswerRe: delete temp files program Pin
DigitalKing2-May-06 19:21
DigitalKing2-May-06 19:21 
GeneralRe: delete temp files program Pin
hops33n3-May-06 16:38
hops33n3-May-06 16:38 
Questiontab order in .net cf Pin
yongwpi2-May-06 16:42
yongwpi2-May-06 16:42 
QuestionDetecting Current Control When Mouse Moves With Button Down Pin
redfish342-May-06 16:06
redfish342-May-06 16:06 
QuestionMulti Threading in WinForms Pin
Shawn_H2-May-06 16:01
Shawn_H2-May-06 16:01 
AnswerRe: Multi Threading in WinForms Pin
Judah Gabriel Himango2-May-06 17:39
sponsorJudah Gabriel Himango2-May-06 17:39 
GeneralRe: Multi Threading in WinForms Pin
Shawn_H3-May-06 3:03
Shawn_H3-May-06 3:03 
QuestionRecursive method to search a folder w/ special condition Pin
WCup2-May-06 15:58
WCup2-May-06 15:58 
Hi, I am using recursion to search for a folder in searchPath and if a subfolder or the searchfolder is the same as saveFolder(the
folder to copy the files to), it skips searching file in the saveFolder. Other than that, it keeps searching the file recursively and calls the
method this.SearchFile(..)
This obiviously fails to build because I didn't assign anyting to 'string folderName' and breaks the logic.
Can anyone please correct this method?

saveFolder path is at saveTextbox.Text

public void GetsubFolders(ref string searchPath, string fileName)
{
string[] folder = Directory.GetDirectories(searchPath);
string folderName;
int index = 0;
if (folder.Length !=0)
{
if (String.Compare(folder[index].ToString(), saveTextbox.Text.ToString()) == 0)
{
index++;
if (folder.Length == index)
{
return;
}
else
{
for (; index < folder.Length; index++)
{
folderName = Convert.ToString(folder[index]);
GetsubFolders(ref folderName, fileName);
}
}
}
else
{
for (; index < folder.Length; index++)
{
folderName = Convert.ToString(folder[index]);
GetsubFolders(ref folderName, fileName);
}
}
}
this.SearchFile(folderName, fileName);
}
Questionsocket and tcp Pin
tjvictor2-May-06 15:29
tjvictor2-May-06 15:29 
AnswerRe: socket and tcp Pin
Jakob Farian Krarup2-May-06 23:58
Jakob Farian Krarup2-May-06 23:58 
QuestionGood reference book Pin
TheJudeDude2-May-06 13:15
TheJudeDude2-May-06 13:15 
QuestionCOM Interface Woes Pin
Daaron2-May-06 12:43
Daaron2-May-06 12:43 
Questionhow I can add more image in pictureBox Pin
mm3102-May-06 11:59
mm3102-May-06 11:59 
AnswerRe: how I can add more image in pictureBox Pin
Judah Gabriel Himango2-May-06 17:38
sponsorJudah Gabriel Himango2-May-06 17:38 
Questionhow to embedd exe file in my app as resource Programmaticaly ? Pin
hdv2122-May-06 11:40
hdv2122-May-06 11:40 
AnswerRe: how to embedd exe file in my app as resource Programmaticaly ? Pin
Ravi Bhavnani2-May-06 12:35
professionalRavi Bhavnani2-May-06 12:35 
Question[Message Deleted] Pin
Dr.Sammer2-May-06 9:39
Dr.Sammer2-May-06 9:39 
AnswerRe: please help Pin
Josh Smith2-May-06 10:10
Josh Smith2-May-06 10:10 
GeneralRe: please help Pin
akyriako782-May-06 20:23
akyriako782-May-06 20:23 
AnswerRe: please help Pin
Dan Neely2-May-06 10:20
Dan Neely2-May-06 10:20 
Questionusing Shared Memory IPC from C++ to C# Pin
u neek2-May-06 8:34
u neek2-May-06 8:34 
AnswerRe: using Shared Memory IPC from C++ to C# Pin
Josh Smith2-May-06 9:17
Josh Smith2-May-06 9:17 
Questionhow to set focus a control in c# Pin
stephen myint2-May-06 8:33
stephen myint2-May-06 8:33 
AnswerRe: how to set focus a control in c# Pin
Tom Larsen2-May-06 11:32
Tom Larsen2-May-06 11:32 
AnswerRe: how to set focus a control in c# Pin
Ravi Bhavnani2-May-06 12:44
professionalRavi Bhavnani2-May-06 12:44 

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.