Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

populating textBox with a set of difference filenames

$
0
0

Hi All,

I have some code in a Windows Form that finds the difference between filenames in a txt reference file and file names in a folder. The difference should be printed out.

Ihave this working in a Console App and I can get the difference to write to a txt file, but what I also want is to put diff the names into a label or a textbox.

Here is my code:

                //Var to hold difference file names
                var diffFiles = sourceFiles.Except(line);
                foreach (string f in diffFiles)
                {
                    statusTextBox.Text = ("\n"+f);
                }

Currently, only ther last diff file name is entered into the textBox. How do I get all the missing filenames to enter?


Lee Warren


Viewing all articles
Browse latest Browse all 12583

Latest Images

Trending Articles



Latest Images