How do I get CopyFileEx for a report so that I can cancel the file copy operation?

I am trying to use the FileUtilities.CopyFile wrapper for CopyFileEx from here . But CopyFileCallbackAction not called until the file is copied (Ive tried to copy a large file). How do I get a report to cancel a copy if the user so desires?

EDIT:

See Why does FileUtilities.CopyFile wrapper for CopyFileEx interfere with winforms?

+4
source share
1 answer

Editing my question (sending Why is the FileUtilities.CopyFile wrapper for CopyFileEx interfering with winforms? ) Sends an answer ( david-heffernan ) - I had everything in one thread.

EDIT: None. It seems that I did not have this.Update(); . See How can I get the code to run after the form is displayed? (The problem is with "Show.") .

+1
source

Source: https://habr.com/ru/post/1384787/


All Articles