"Nikolay Petrov" <jo******@mail.bg> schrieb:
How to check if the file, that i need to write to is locked, and if so
wait some time then try again?
Try to open the file with 'FileShare.None' and catch the exception which is
thrown when the file is already in use. You can use a timer control to
periodically check the file until it can be opened.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>