Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
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 
I am writing a program that takes all the files from one folder, EXCEPT the one created today, and copies them to another folder. Everything works ok except copying only the files that were created prior to today. Instead my program copies all of the files over.


The part that is highlighted is the part I can't get to work. When the console writes out the creation time it is always of the time the files are being created currently and not when they were created orginally

// Check if the target directory exists, if not, create it.   
            if (Directory.Exists(target.FullName) == false)   
            {   
                Directory.CreateDirectory(target.FullName);   
            }   
               
               
            // 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 != DateTime.Today)   
                {   
                    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);   
                }   
                   
            }   
               
            // Delete files from old directory.   
            foreach (FileInfo fi in source.GetFiles())   
            {   
                Console.WriteLine(@"Deleting {0}\{1}", source.FullName, fi.Name);   
                fi.Delete();   
            }   

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 
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 
GeneralRe: Handles in C# ? Pin
kindman_nb19-Jul-08 9:12
kindman_nb19-Jul-08 9:12 
GeneralRe: Handles in C# ? Pin
Luc Pattyn19-Jul-08 9:26
sitebuilderLuc Pattyn19-Jul-08 9:26 
QuestionMDI Forms and focus frustration, please help Pin
kensai19-Jul-08 6:56
kensai19-Jul-08 6:56 

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.