Click here to Skip to main content
15,886,518 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSound doesn't play instantly...but wait for next operation to complete!! Pin
Jayme653-Sep-13 3:17
Jayme653-Sep-13 3:17 
AnswerRe: Sound doesn't play instantly...but wait for next operation to complete!! Pin
Richard Deeming3-Sep-13 3:53
mveRichard Deeming3-Sep-13 3:53 
AnswerRe: Sound doesn't play instantly...but wait for next operation to complete!! Pin
Bernhard Hiller3-Sep-13 23:08
Bernhard Hiller3-Sep-13 23:08 
GeneralRe: Sound doesn't play instantly...but wait for next operation to complete!! Pin
Jayme655-Sep-13 21:23
Jayme655-Sep-13 21:23 
QuestionLate Binding issue in Copy Objects of AutoCAD Pin
Adnan Siddiqi1-Sep-13 9:42
Adnan Siddiqi1-Sep-13 9:42 
AnswerRe: Late Binding issue in Copy Objects of AutoCAD Pin
Richard MacCutchan1-Sep-13 20:47
mveRichard MacCutchan1-Sep-13 20:47 
GeneralRe: Late Binding issue in Copy Objects of AutoCAD Pin
Adnan Siddiqi3-Sep-13 3:18
Adnan Siddiqi3-Sep-13 3:18 
QuestionUsing Directory.GetFiles() WITH multiple extensions AND sort order Pin
Jayme651-Sep-13 0:15
Jayme651-Sep-13 0:15 
Hi,

I have to get a directory file list, filtered on multiple extensions...and sorted!

I use this, which is the fastest way I've found to get dir content filtered on multiple extensions:

VB
Dim ext As String() = {"*.jpg", "*.bmp","*png"}
Dim files As String() = ext.SelectMany(Function(f) Directory.GetFiles(romPath, f)).ToArray
Array.Sort(files)


and then use an array sort.


I was wondering (and this is my question Wink | ;) ) if there would be a way to do the sorting IN the same main line? A kind of:
VB
Dim files As String() = ext.SelectMany(Function(f) Directory.GetFiles(romPath, f)[B].Order By Name[/B]).ToArray


and, if yes, if I would gain speed doing this instead of sorting the array at the end (but I would do my test and report..as soon as I get a solution!!)?
Thanks for your help!!
AnswerRe: Using Directory.GetFiles() WITH multiple extensions AND sort order Pin
Eddy Vluggen1-Sep-13 1:59
professionalEddy Vluggen1-Sep-13 1:59 
AnswerRe: Using Directory.GetFiles() WITH multiple extensions AND sort order Pin
Eddy Vluggen2-Sep-13 3:16
professionalEddy Vluggen2-Sep-13 3:16 
QuestionHow to Run charmap.exe with a chosen font? Pin
Alan Burkhart31-Aug-13 1:41
Alan Burkhart31-Aug-13 1:41 
AnswerRe: How to Run charmap.exe with a chosen font? Pin
Dave Kreskowiak31-Aug-13 3:13
mveDave Kreskowiak31-Aug-13 3:13 
GeneralRe: How to Run charmap.exe with a chosen font? Pin
Alan Burkhart31-Aug-13 6:01
Alan Burkhart31-Aug-13 6:01 
GeneralRe: How to Run charmap.exe with a chosen font? Pin
Dave Kreskowiak31-Aug-13 8:27
mveDave Kreskowiak31-Aug-13 8:27 
AnswerRe: How to Run charmap.exe with a chosen font? Pin
TnTinMn2-Sep-13 5:52
TnTinMn2-Sep-13 5:52 
AnswerRe: How to Run charmap.exe with a chosen font? Pin
Marco Bertschi3-Sep-13 4:30
protectorMarco Bertschi3-Sep-13 4:30 
QuestionRandom Generator not Generating Pin
Zyndell29-Aug-13 9:55
Zyndell29-Aug-13 9:55 
SuggestionRe: Random Generator not Generating Pin
Richard MacCutchan29-Aug-13 21:17
mveRichard MacCutchan29-Aug-13 21:17 
AnswerRe: Random Generator not Generating Pin
Dave Kreskowiak30-Aug-13 2:52
mveDave Kreskowiak30-Aug-13 2:52 
AnswerRe: Random Generator not Generating Pin
Zyndell30-Aug-13 7:48
Zyndell30-Aug-13 7:48 
GeneralRe: Random Generator not Generating Pin
Dave Kreskowiak30-Aug-13 12:45
mveDave Kreskowiak30-Aug-13 12:45 
GeneralRe: Random Generator not Generating Pin
Zyndell30-Aug-13 15:03
Zyndell30-Aug-13 15:03 
AnswerRe: Random Generator not Generating Pin
Zyndell2-Sep-13 15:46
Zyndell2-Sep-13 15:46 
GeneralRe: Random Generator not Generating Pin
Dave Kreskowiak2-Sep-13 16:35
mveDave Kreskowiak2-Sep-13 16:35 
GeneralRe: Random Generator not Generating Pin
GuyThiebaut2-Sep-13 22:13
professionalGuyThiebaut2-Sep-13 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.