Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why I hate C# Pin
PIEBALDconsult28-Nov-07 14:50
mvePIEBALDconsult28-Nov-07 14:50 
GeneralRe: Why I hate C# Pin
Skippums29-Nov-07 4:13
Skippums29-Nov-07 4:13 
GeneralRe: Why I hate C# Pin
PIEBALDconsult29-Nov-07 5:00
mvePIEBALDconsult29-Nov-07 5:00 
GeneralRe: Why I hate C# Pin
Skippums29-Nov-07 5:03
Skippums29-Nov-07 5:03 
AnswerRe: Why I hate C# Pin
Bino B28-Nov-07 15:39
Bino B28-Nov-07 15:39 
AnswerRe: Why I hate C# Pin
Skippums29-Nov-07 4:10
Skippums29-Nov-07 4:10 
QuestionGetting the names of files have extension of mp3 from filesystem?? Pin
omegazafer28-Nov-07 11:57
omegazafer28-Nov-07 11:57 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Anthony Mushrow28-Nov-07 12:10
professionalAnthony Mushrow28-Nov-07 12:10 
Recursion:

void GetMP3(string Path) 
{
...

  foreach(FileSystemInfo f in fi) {
    if(f.Extension == ".mp3") {
      richTextBox1.Text += f.Name;
      richTextBox1.Text += Environment.NewLine;
    }
  }

  foreach(DirectoryInfo d in di) {
    GetMP3(d.FullName);
  }
...
}

The function will keep calling itself for all subdirectories within a folder, quite clever when you think about it.
That code might not work, but you get the idea.

You may also need to call Application.DoEvents() somewhere too, so that your window doesn't lock up while you trawl through the compy looking for mp3's



My current favourite word is: PIE!

I have changed my name to my regular internet alias. But don't let the 'Genius' part fool you, you don't know what 'SK' stands for.
-The Undefeated

GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Jared Bienz [MSFT]28-Nov-07 12:33
Jared Bienz [MSFT]28-Nov-07 12:33 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Skippums28-Nov-07 12:22
Skippums28-Nov-07 12:22 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Anthony Mushrow28-Nov-07 12:26
professionalAnthony Mushrow28-Nov-07 12:26 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Luc Pattyn28-Nov-07 12:28
sitebuilderLuc Pattyn28-Nov-07 12:28 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Jared Bienz [MSFT]28-Nov-07 12:36
Jared Bienz [MSFT]28-Nov-07 12:36 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Luc Pattyn28-Nov-07 21:50
sitebuilderLuc Pattyn28-Nov-07 21:50 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
omegazafer28-Nov-07 12:41
omegazafer28-Nov-07 12:41 
QuestionIdentifier Expected Pin
murtle328-Nov-07 11:31
murtle328-Nov-07 11:31 
AnswerRe: Identifier Expected Pin
Luc Pattyn28-Nov-07 11:38
sitebuilderLuc Pattyn28-Nov-07 11:38 
GeneralRe: Identifier Expected Pin
murtle328-Nov-07 12:00
murtle328-Nov-07 12:00 
GeneralRe: Identifier Expected Pin
Luc Pattyn28-Nov-07 12:21
sitebuilderLuc Pattyn28-Nov-07 12:21 
AnswerRe: Identifier Expected Pin
Jared Bienz [MSFT]28-Nov-07 12:08
Jared Bienz [MSFT]28-Nov-07 12:08 
GeneralRe: Identifier Expected Pin
murtle328-Nov-07 12:16
murtle328-Nov-07 12:16 
GeneralRe: Identifier Expected Pin
Jared Bienz [MSFT]28-Nov-07 12:19
Jared Bienz [MSFT]28-Nov-07 12:19 
JokeRe: Identifier Expected Pin
Pete O'Hanlon28-Nov-07 22:16
mvePete O'Hanlon28-Nov-07 22:16 
GeneralRe: Identifier Expected Pin
Luc Pattyn28-Nov-07 22:40
sitebuilderLuc Pattyn28-Nov-07 22:40 
GeneralRe: Identifier Expected Pin
Pete O'Hanlon28-Nov-07 23:11
mvePete O'Hanlon28-Nov-07 23:11 

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.