Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
AnswerRe: Break statement in C#. Pin
Christian Graus8-Dec-05 10:08
protectorChristian Graus8-Dec-05 10:08 
GeneralRe: Break statement in C#. Pin
sacoskun8-Dec-05 20:08
sacoskun8-Dec-05 20:08 
QuestionMDI Menus Question Pin
akyriako788-Dec-05 6:02
akyriako788-Dec-05 6:02 
AnswerRe: MDI Menus Question Pin
akyriako788-Dec-05 6:12
akyriako788-Dec-05 6:12 
Questionapplication configuration file location Pin
rnvrnv8-Dec-05 5:22
rnvrnv8-Dec-05 5:22 
AnswerRe: application configuration file location Pin
Curtis Schlak.8-Dec-05 5:40
Curtis Schlak.8-Dec-05 5:40 
QuestionShared folder events Pin
amatyasik8-Dec-05 4:59
amatyasik8-Dec-05 4:59 
Questionrestricting 2nd+ users access to a file Pin
Dan Neely8-Dec-05 4:01
Dan Neely8-Dec-05 4:01 
I'm trying to set things up so that multiple users can access a shared file, but only the first to open the file can get write privlages (the remainder are limited to readonly access).

I'm trying to use the FileSHare property to do this without success. What I tried doing was having the
app first try to open it with FileAccess.ReadWrite and FileShare.Read privlages, and if that failed in with FileAccess.Read FileShare.Read for read only acccess.

What I've discovered is that if the first user has the file open, the 2nd+ users fail due to a permissions failure. I don't understand why though, the first user's allowing readshare privs, and the 2nd is only attempting to open it for read access.
AnswerRe: restricting 2nd+ users access to a file Pin
Curtis Schlak.8-Dec-05 4:54
Curtis Schlak.8-Dec-05 4:54 
GeneralRe: restricting 2nd+ users access to a file Pin
Dan Neely8-Dec-05 5:30
Dan Neely8-Dec-05 5:30 
GeneralRe: restricting 2nd+ users access to a file Pin
Curtis Schlak.8-Dec-05 5:35
Curtis Schlak.8-Dec-05 5:35 
Questionhow to use TOP N in c#.net ? Pin
horacyjr8-Dec-05 3:57
horacyjr8-Dec-05 3:57 
AnswerRe: how to use TOP N in c#.net ? Pin
Colin Angus Mackay8-Dec-05 9:18
Colin Angus Mackay8-Dec-05 9:18 
AnswerRe: how to use TOP N in c#.net ? Pin
Johny Ng8-Dec-05 12:09
Johny Ng8-Dec-05 12:09 
GeneralRe: how to use TOP N in c#.net ? Pin
Colin Angus Mackay8-Dec-05 12:25
Colin Angus Mackay8-Dec-05 12:25 
GeneralRe: how to use TOP N in c#.net ? Pin
Johny Ng8-Dec-05 12:46
Johny Ng8-Dec-05 12:46 
GeneralRe: how to use TOP N in c#.net ? Pin
leppie8-Dec-05 13:19
leppie8-Dec-05 13:19 
GeneralRe: anwer Pin
horacyjr8-Dec-05 23:59
horacyjr8-Dec-05 23:59 
QuestionDecimals missing Pin
Stefan R8-Dec-05 3:42
Stefan R8-Dec-05 3:42 
AnswerRe: Decimals missing Pin
Rob Philpott8-Dec-05 3:52
Rob Philpott8-Dec-05 3:52 
QuestionCustom Titlebar Pin
PHDENG818-Dec-05 3:41
PHDENG818-Dec-05 3:41 
AnswerRe: Custom Titlebar Pin
Dan Neely8-Dec-05 3:47
Dan Neely8-Dec-05 3:47 
GeneralRe: Custom Titlebar Pin
PHDENG818-Dec-05 6:14
PHDENG818-Dec-05 6:14 
GeneralRe: Custom Titlebar Pin
Dan Neely8-Dec-05 7:06
Dan Neely8-Dec-05 7:06 
GeneralRe: Custom Titlebar Pin
PHDENG819-Dec-05 1:34
PHDENG819-Dec-05 1:34 

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.