CheeseBoy Posted December 11, 2003 Posted December 11, 2003 Hi all. I have written a program that extracts mp3 files from playlists and then copies them to a set directory. Now the whole thing works fine but as it's copying, the whole application just goes blank. On closer inspection the task manager says the program is 'Not responding' although this isnt the case as it's happily copying files... I have written progress bars and text box progress to show each file as it's copied but this cannot be seen until the end of the copying.. Is there a way to get focus back to the main window and display these progress tools in real time... Quote
Leaders Iceplug Posted December 11, 2003 Leaders Posted December 11, 2003 Try adding: Application.DoEvents to let your app refresh while it is running. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
CheeseBoy Posted December 12, 2003 Author Posted December 12, 2003 Thanks for that will give it a go. On another note when copying files can you trigger the windows copying status box??? Quote
Voca Posted December 16, 2003 Posted December 16, 2003 As far as I know, there ain't any predefined copy-dialogs in .net, but it should be no problem rebuilding it. If you need help with the coding just ask. Voca Quote
wangwenxing Posted January 14, 2004 Posted January 14, 2004 File Triggering Hi, I am using C#. I would like know whether it is possible to build a folder monitoring service. The service can trigger a process/program when there is a file copied into a specified folder. Is it possible to trigger the process after the big file(200M) is copied into the folder completely? Could you provide some codes sample? Thanks Quote
Administrators PlausiblyDamp Posted January 14, 2004 Administrators Posted January 14, 2004 You could add a FileSystemWatcher to your application from the toolbox, that will allow you to monitor file system events. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
wangwenxing Posted January 18, 2004 Posted January 18, 2004 Created even I tried to copy a big file into the monitored folder, but the file has not been copied completely, the "Created" even already triggered. How to know when the file is "completely created"? Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.