Soldato
[C#] Updating the form in real time?
I've written a little backup utility in C# which copies the contents of one directory to another with several options, and I want to be able to add an item to a listbox for each file that is copied, in real time.
So far, I have a class that does the file copying, and raises an event every time a file is copied, which is handled back in the form file, and an item is added to the listbox. However, the changes can't be seen until the backup object has finished doing its thing and control has passed back into and through the buttonBackup_Click() event handler.
Is there a way of getting the changes to be visible as the files are being copied?
Any help appreciated
I've written a little backup utility in C# which copies the contents of one directory to another with several options, and I want to be able to add an item to a listbox for each file that is copied, in real time.
So far, I have a class that does the file copying, and raises an event every time a file is copied, which is handled back in the form file, and an item is added to the listbox. However, the changes can't be seen until the backup object has finished doing its thing and control has passed back into and through the buttonBackup_Click() event handler.
Is there a way of getting the changes to be visible as the files are being copied?
Any help appreciated
Last edited: