Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to bypass Required FieldValidators using VS2003? Pin
ssg3141592619-Jul-08 23:32
ssg3141592619-Jul-08 23:32 
GeneralRe: How to bypass Required FieldValidators using VS2003? Pin
Gaurav Aroraa20-Jul-08 6:27
professionalGaurav Aroraa20-Jul-08 6:27 
QuestionHow to detect when a DataGridViewCell's value has changed Pin
Jordanwb19-Jul-08 10:05
Jordanwb19-Jul-08 10:05 
AnswerRe: How to detect when a DataGridViewCell's value has changed Pin
Paul Conrad19-Jul-08 15:08
professionalPaul Conrad19-Jul-08 15:08 
GeneralRe: How to detect when a DataGridViewCell's value has changed Pin
Jordanwb20-Jul-08 3:24
Jordanwb20-Jul-08 3:24 
AnswerRe: How to detect when a DataGridViewCell's value has changed Pin
Luc Pattyn19-Jul-08 15:17
sitebuilderLuc Pattyn19-Jul-08 15:17 
GeneralRe: How to detect when a DataGridViewCell's value has changed Pin
Jordanwb20-Jul-08 3:23
Jordanwb20-Jul-08 3:23 
QuestionMessageBox.Show("Hello, world."); Pin
njitram19-Jul-08 8:51
njitram19-Jul-08 8:51 
AnswerRe: MessageBox.Show("Hello, world."); Pin
Luc Pattyn19-Jul-08 9:40
sitebuilderLuc Pattyn19-Jul-08 9:40 
AnswerRe: MessageBox.Show("Hello, world."); Pin
Paul Conrad19-Jul-08 11:03
professionalPaul Conrad19-Jul-08 11:03 
QuestionProblem with program that copies files to new folder Pin
jumbojs19-Jul-08 8:38
jumbojs19-Jul-08 8:38 
AnswerRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 8:50
sitebuilderLuc Pattyn19-Jul-08 8:50 
GeneralRe: Problem with program that copies files to new folder Pin
jumbojs19-Jul-08 9:16
jumbojs19-Jul-08 9:16 
Thanks for the response. When I try this it only works if I have the operator set to == but I want it to be != because I don't want it to copy the current file. Also, when the console writes out the date it is always todays date. This isn't right because it should be the date of when the file was created. If it is always set to the current date then none of the files will be copied.

// Copy each file into it's new directory.
// Do not copy if it is current file
foreach (FileInfo fi in source.GetFiles())
{
   if (fi.CreationTime.Date != DateTime.Now.Date)               {

        Console.WriteLine("Creation Time: {0}", fi.CreationTime);
        Console.WriteLine(@"Copying {0}\{1}", target.FullName, fi.Name);
        fi.CopyTo(Path.Combine(target.ToString(), fi.Name), true);
    }

}

GeneralRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 9:38
sitebuilderLuc Pattyn19-Jul-08 9:38 
GeneralRe: Problem with program that copies files to new folder Pin
jumbojs19-Jul-08 10:09
jumbojs19-Jul-08 10:09 
GeneralRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 10:15
sitebuilderLuc Pattyn19-Jul-08 10:15 
GeneralRe: Problem with program that copies files to new folder Pin
jumbojs19-Jul-08 10:18
jumbojs19-Jul-08 10:18 
GeneralRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 10:32
sitebuilderLuc Pattyn19-Jul-08 10:32 
QuestionCrystal Report -- Urgent Help Pin
Ahmed EL Gendy19-Jul-08 8:29
Ahmed EL Gendy19-Jul-08 8:29 
AnswerRe: Crystal Report -- Urgent Help Pin
Paul Conrad19-Jul-08 11:04
professionalPaul Conrad19-Jul-08 11:04 
QuestionHandles in C# ? Pin
kindman_nb19-Jul-08 8:20
kindman_nb19-Jul-08 8:20 
AnswerRe: Handles in C# ? Pin
Wendelius19-Jul-08 8:31
mentorWendelius19-Jul-08 8:31 
GeneralRe: Handles in C# ? Pin
kindman_nb19-Jul-08 9:08
kindman_nb19-Jul-08 9:08 
GeneralRe: Handles in C# ? Pin
Wendelius19-Jul-08 21:37
mentorWendelius19-Jul-08 21:37 
AnswerRe: Handles in C# ? Pin
Luc Pattyn19-Jul-08 8:53
sitebuilderLuc Pattyn19-Jul-08 8:53 

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.