Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with panels Pin
OriginalGriff7-Feb-11 8:17
mveOriginalGriff7-Feb-11 8:17 
AnswerRe: Problem with panels Pin
Luc Pattyn7-Feb-11 8:40
sitebuilderLuc Pattyn7-Feb-11 8:40 
AnswerRe: Problem with panels Pin
OriginalGriff7-Feb-11 8:14
mveOriginalGriff7-Feb-11 8:14 
GeneralRe: Problem with panels Pin
nighttrain_7-Feb-11 8:26
nighttrain_7-Feb-11 8:26 
GeneralRe: Problem with panels Pin
OriginalGriff7-Feb-11 8:35
mveOriginalGriff7-Feb-11 8:35 
GeneralRe: Problem with panels Pin
nighttrain_7-Feb-11 8:43
nighttrain_7-Feb-11 8:43 
GeneralRe: Problem with panels Pin
OriginalGriff7-Feb-11 8:48
mveOriginalGriff7-Feb-11 8:48 
GeneralRe: Problem with panels Pin
nighttrain_7-Feb-11 8:55
nighttrain_7-Feb-11 8:55 
AnswerRe: Problem with panels Pin
Bassio8-Feb-11 0:55
Bassio8-Feb-11 0:55 
QuestionWebBrowser in Windows applications Pin
Zeyad Jalil7-Feb-11 7:05
professionalZeyad Jalil7-Feb-11 7:05 
AnswerRe: WebBrowser in Windows applications Pin
Luc Pattyn7-Feb-11 8:13
sitebuilderLuc Pattyn7-Feb-11 8:13 
QuestionMysqldatabase connexion Pin
Pierre besquent7-Feb-11 5:34
Pierre besquent7-Feb-11 5:34 
AnswerRe: Mysqldatabase connexion Pin
Umair Feroze7-Feb-11 6:51
Umair Feroze7-Feb-11 6:51 
GeneralRe: Mysqldatabase connexion Pin
Pierre besquent7-Feb-11 21:01
Pierre besquent7-Feb-11 21:01 
AnswerRe: Mysqldatabase connexion Pin
OriginalGriff7-Feb-11 8:24
mveOriginalGriff7-Feb-11 8:24 
AnswerRe: Mysqldatabase connexion Pin
RaviRanjanKr9-Feb-11 3:59
professionalRaviRanjanKr9-Feb-11 3:59 
QuestionFileSystemWatcher how to wait for file copy completion? Pin
Chesnokov Yuriy7-Feb-11 4:02
professionalChesnokov Yuriy7-Feb-11 4:02 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Thomas Krojer7-Feb-11 4:09
Thomas Krojer7-Feb-11 4:09 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Chesnokov Yuriy7-Feb-11 7:18
professionalChesnokov Yuriy7-Feb-11 7:18 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
#realJSOP7-Feb-11 4:24
professional#realJSOP7-Feb-11 4:24 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Ennis Ray Lynch, Jr.7-Feb-11 4:26
Ennis Ray Lynch, Jr.7-Feb-11 4:26 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Luc Pattyn7-Feb-11 4:30
sitebuilderLuc Pattyn7-Feb-11 4:30 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Pete O'Hanlon7-Feb-11 5:17
mvePete O'Hanlon7-Feb-11 5:17 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Dave Kreskowiak7-Feb-11 6:28
mveDave Kreskowiak7-Feb-11 6:28 
Just to be clear, there is no "completion event". The FSW tells you when a file is CREATED, not when a copy operation is going on.

A file copy operation is just an application (Explorer) opening one file for read and another file for write. Read the bytes from one file and write them to another.

The FSW cannot tell what is going on with the files.

But, yeah, your code has to respond to the Created event from the FSW, then start trying to open the file for read with exclusive access (ShareDenyAll). If the open statement fails, wait for a few seconds, then try it again. When you finally get the file open, your copy operation should be done. Close the file and process to do whatever you wanted with the file.

QuestionProblem by using an Object and a variable inside another function [modified] Pin
nstk7-Feb-11 2:59
nstk7-Feb-11 2:59 

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.