Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralRe: Static constructor Pin
erfgerfgerger30-Jul-09 2:07
erfgerfgerger30-Jul-09 2:07 
GeneralRe: Static constructor Pin
PIEBALDconsult30-Jul-09 4:28
mvePIEBALDconsult30-Jul-09 4:28 
QuestionExtreme right click on the scollbar any event? Pin
spalanivel30-Jul-09 0:14
spalanivel30-Jul-09 0:14 
AnswerRe: Extreme right click on the scollbar any event? Pin
Alan N30-Jul-09 3:15
Alan N30-Jul-09 3:15 
GeneralRe: Extreme right click on the scollbar any event? Pin
spalanivel30-Jul-09 18:52
spalanivel30-Jul-09 18:52 
QuestionChecking file longer than 1 hour Pin
Mninawa29-Jul-09 23:45
Mninawa29-Jul-09 23:45 
AnswerRe: Checking file longer than 1 hour Pin
Moreno Airoldi29-Jul-09 23:52
Moreno Airoldi29-Jul-09 23:52 
AnswerRe: Checking file longer than 1 hour [modified] Pin
Mirko198030-Jul-09 0:04
Mirko198030-Jul-09 0:04 
For date and time handling you must use the builtin DateTime type, it gives you all the methods you need.
You can get the current time with DateTime.Now, and you can compare two date times or subtract one to another to obtain a TimeSpan value representing the difference between the two (Moreno Airoldi sowed you how to do this).

Also, you don't need all the string parsing you are doing, just use a SortedDictionary with last access time for key and file path for value.

modified on Thursday, July 30, 2009 6:21 AM

AnswerRe: Checking file longer than 1 hour Pin
Luc Pattyn30-Jul-09 0:15
sitebuilderLuc Pattyn30-Jul-09 0:15 
Questionrun application without install dotnet Pin
mjawadkhatri29-Jul-09 23:29
mjawadkhatri29-Jul-09 23:29 
AnswerRe: run application without install dotnet Pin
musefan29-Jul-09 23:46
musefan29-Jul-09 23:46 
GeneralRe: run application without install dotnet Pin
mjawadkhatri29-Jul-09 23:52
mjawadkhatri29-Jul-09 23:52 
GeneralRe: run application without install dotnet Pin
Tom Deketelaere30-Jul-09 0:08
professionalTom Deketelaere30-Jul-09 0:08 
GeneralRe: run application without install dotnet Pin
Kevin McFarlane30-Jul-09 0:12
Kevin McFarlane30-Jul-09 0:12 
GeneralRe: run application without install dotnet Pin
Baeltazor30-Jul-09 18:52
Baeltazor30-Jul-09 18:52 
AnswerRe: run application without install dotnet Pin
Henry Minute30-Jul-09 4:01
Henry Minute30-Jul-09 4:01 
QuestionNested DataGridView Pin
Muammar©29-Jul-09 22:52
Muammar©29-Jul-09 22:52 
AnswerRe: Nested DataGridView Pin
Henry Minute30-Jul-09 3:58
Henry Minute30-Jul-09 3:58 
GeneralRe: Nested DataGridView Pin
Muammar©30-Jul-09 7:28
Muammar©30-Jul-09 7:28 
QuestionExcel app to C# winform Pin
Dimitris Nemtsov29-Jul-09 22:47
Dimitris Nemtsov29-Jul-09 22:47 
AnswerRe: Excel app to C# winform Pin
jasonmp19-Nov-10 4:56
jasonmp19-Nov-10 4:56 
GeneralRe: Excel app to C# winform Pin
Dimitris Nemtsov19-Nov-10 10:25
Dimitris Nemtsov19-Nov-10 10:25 
Questioncreate a control inside a thread and update it Pin
Vivek Vijayan29-Jul-09 22:32
Vivek Vijayan29-Jul-09 22:32 
AnswerRe: create a control inside a thread and update it Pin
Luc Pattyn29-Jul-09 23:14
sitebuilderLuc Pattyn29-Jul-09 23:14 
QuestionSending(Play) voice via modem by AT Command Pin
Mahyar_Habibpour29-Jul-09 22:13
Mahyar_Habibpour29-Jul-09 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.