Click here to Skip to main content
15,884,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error building C# control library Pin
Richard Jones20-Jun-07 1:45
Richard Jones20-Jun-07 1:45 
QuestionCurrentTimestamp Pin
LCI19-Jun-07 7:12
LCI19-Jun-07 7:12 
AnswerRe: CurrentTimestamp Pin
Giorgi Dalakishvili19-Jun-07 7:22
mentorGiorgi Dalakishvili19-Jun-07 7:22 
JokeCool signature! Pin
Martin#19-Jun-07 9:29
Martin#19-Jun-07 9:29 
GeneralRe: Cool signature! [modified] Pin
Giorgi Dalakishvili19-Jun-07 10:01
mentorGiorgi Dalakishvili19-Jun-07 10:01 
GeneralRe: CurrentTimestamp Pin
Le centriste20-Jun-07 2:06
Le centriste20-Jun-07 2:06 
GeneralRe: CurrentTimestamp Pin
Giorgi Dalakishvili20-Jun-07 2:49
mentorGiorgi Dalakishvili20-Jun-07 2:49 
QuestionFile Open Status/Access Pin
RussBus19-Jun-07 7:10
RussBus19-Jun-07 7:10 
Background: I am building a custom XML editor slash encryption tool.

I am having a problem dealing with multiple people accessing the same file (or a single person accessing the same file). What I am looking to do is if the file is currently open the user is prompted that the file is already open and only has read access.

Right now the user can open a file that is already open, then when either people with the same file go to save an error is thrown and the file is locked against any saving.

So my question is:

1)Is there a way to check if a file is already open?
2)If the file is open, the original person who opened keeps writing privilege well the other user is only given read access?
3)Can I prevent the file from being locked?

Thanks for the help. Big Grin | :-D

AnswerRe: File Open Status/Access Pin
Giorgi Dalakishvili19-Jun-07 7:27
mentorGiorgi Dalakishvili19-Jun-07 7:27 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 7:32
RussBus19-Jun-07 7:32 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 10:03
RussBus19-Jun-07 10:03 
GeneralRe: File Open Status/Access Pin
Giorgi Dalakishvili19-Jun-07 10:27
mentorGiorgi Dalakishvili19-Jun-07 10:27 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 10:47
RussBus19-Jun-07 10:47 
GeneralRe: File Open Status/Access Pin
Abisodun19-Jun-07 11:30
Abisodun19-Jun-07 11:30 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 11:42
RussBus19-Jun-07 11:42 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 11:53
RussBus19-Jun-07 11:53 
GeneralRe: File Open Status/Access Pin
Abisodun19-Jun-07 14:12
Abisodun19-Jun-07 14:12 
Questionhow to call the dll writed by c in c# Pin
anuo0619-Jun-07 6:20
anuo0619-Jun-07 6:20 
AnswerRe: how to call the dll writed by c in c# Pin
Giorgi Dalakishvili19-Jun-07 6:55
mentorGiorgi Dalakishvili19-Jun-07 6:55 
AnswerRe: how to call the dll writed by c in c# Pin
Luc Pattyn19-Jun-07 7:02
sitebuilderLuc Pattyn19-Jun-07 7:02 
GeneralRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:04
anuo0619-Jun-07 8:04 
GeneralRe: how to call the dll writed by c in c# Pin
Luc Pattyn19-Jun-07 12:18
sitebuilderLuc Pattyn19-Jun-07 12:18 
GeneralRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 19:04
anuo0619-Jun-07 19:04 
GeneralRe: how to call the dll writed by c in c# Pin
Luc Pattyn20-Jun-07 1:26
sitebuilderLuc Pattyn20-Jun-07 1:26 
AnswerRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:10
anuo0619-Jun-07 8:10 

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.