Click here to Skip to main content
15,914,322 members
Home / Discussions / C#
   

C#

 
Questiondynamic control Pin
abhaygalande20-Jun-06 4:28
abhaygalande20-Jun-06 4:28 
AnswerRe: dynamic control Pin
Josh Smith20-Jun-06 4:59
Josh Smith20-Jun-06 4:59 
QuestionGet values from a Listview [modified] Pin
Willem_Le_Roux20-Jun-06 3:43
Willem_Le_Roux20-Jun-06 3:43 
AnswerRe: Get values from a Listview Pin
Drew McGhie20-Jun-06 4:19
Drew McGhie20-Jun-06 4:19 
AnswerRe: Get values from a Listview Pin
Josh Smith20-Jun-06 4:30
Josh Smith20-Jun-06 4:30 
GeneralRe: Get values from a Listview [modified] Pin
Willem_Le_Roux20-Jun-06 23:02
Willem_Le_Roux20-Jun-06 23:02 
Questionlist files in directory ordered by creation time Pin
valiovalio20-Jun-06 3:29
valiovalio20-Jun-06 3:29 
AnswerRe: list files in directory ordered by creation time Pin
Guffa20-Jun-06 3:42
Guffa20-Jun-06 3:42 
I believe that it doesn't return the files in any specific order at all. They just happen to be ordered alphabetically in the directory. Probably because you have moved the folder (as that creates a new folder and moves the files) or have run defrag (which sorts the files in the directories).

You need to get more information about the files than just the name. Use DirectoryInfo.GetFiles to get FileInfo-object for the files.

Make a Comparer for two FileInfo-objects that compares the property you want to sort on, and use that in the Array.Sort method.


---
b { font-weight: normal; }

QuestionHow to delete word document [modified] Pin
ayyp20-Jun-06 2:48
ayyp20-Jun-06 2:48 
Questionc# Brain teaser Pin
izakfick20-Jun-06 2:47
izakfick20-Jun-06 2:47 
AnswerRe: c# Brain teaser Pin
Wjousts20-Jun-06 3:05
Wjousts20-Jun-06 3:05 
AnswerRe: c# Brain teaser Pin
J4amieC20-Jun-06 3:07
J4amieC20-Jun-06 3:07 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 3:17
izakfick20-Jun-06 3:17 
GeneralRe: c# Brain teaser Pin
thelastjedi20-Jun-06 3:23
thelastjedi20-Jun-06 3:23 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 3:31
izakfick20-Jun-06 3:31 
AnswerRe: c# Brain teaser Pin
thelastjedi20-Jun-06 3:36
thelastjedi20-Jun-06 3:36 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 3:42
izakfick20-Jun-06 3:42 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 3:43
izakfick20-Jun-06 3:43 
GeneralRe: c# Brain teaser Pin
thelastjedi20-Jun-06 4:08
thelastjedi20-Jun-06 4:08 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 4:10
izakfick20-Jun-06 4:10 
AnswerRe: c# Brain teaser Pin
thelastjedi20-Jun-06 4:38
thelastjedi20-Jun-06 4:38 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 4:49
izakfick20-Jun-06 4:49 
GeneralRe: c# Brain teaser Pin
thelastjedi20-Jun-06 5:07
thelastjedi20-Jun-06 5:07 
GeneralRe: c# Brain teaser Pin
izakfick20-Jun-06 5:40
izakfick20-Jun-06 5:40 
AnswerRe: c# Brain teaser Pin
Guffa20-Jun-06 4:09
Guffa20-Jun-06 4:09 

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.