Click here to Skip to main content
15,917,610 members
Home / Discussions / C#
   

C#

 
QuestionMouseMove-Event without moving the mouse on Windows 7? Pin
Bernhard Hiller3-Sep-10 3:37
Bernhard Hiller3-Sep-10 3:37 
AnswerRe: MouseMove-Event without moving the mouse on Windows 7? Pin
jtobikidd15-Sep-10 4:46
jtobikidd15-Sep-10 4:46 
AnswerRe: MouseMove-Event without moving the mouse on Windows 7? Pin
Pawel Gielmuda16-Feb-11 22:44
Pawel Gielmuda16-Feb-11 22:44 
QuestionThreaded client server connection problems Pin
teknolog1233-Sep-10 3:07
teknolog1233-Sep-10 3:07 
AnswerRe: Threaded client server connection problems Pin
Ian Shlasko3-Sep-10 3:28
Ian Shlasko3-Sep-10 3:28 
GeneralRe: Threaded client server connection problems Pin
teknolog1234-Sep-10 5:07
teknolog1234-Sep-10 5:07 
GeneralRe: Threaded client server connection problems Pin
Ian Shlasko4-Sep-10 5:30
Ian Shlasko4-Sep-10 5:30 
QuestionCheck if File is in Use Pin
MumbleB3-Sep-10 1:42
MumbleB3-Sep-10 1:42 
Hi Guys. How can I check if a file is being used by another process?

I have tried the following but it doesn't seem to work though.

FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.ReadWrite, FileShare.None)


If I open the .txt file in NotePad and then run the app it opens the file. What I need to do is for my app to throw an exception that tells me that the file being used by another process, or something like that.

Anybody have any idea?

Thanks
Excellence is doing ordinary things extraordinarily well.

AnswerRe: Check if File is in Use Pin
OriginalGriff3-Sep-10 1:59
mveOriginalGriff3-Sep-10 1:59 
AnswerRe: Check if File is in Use Pin
Dave Kreskowiak3-Sep-10 2:17
mveDave Kreskowiak3-Sep-10 2:17 
AnswerRe: Check if File is in Use Pin
Łukasz Nowakowski3-Sep-10 3:13
Łukasz Nowakowski3-Sep-10 3:13 
QuestionHow to access public varialbes in C# class Pin
Joe Rozario3-Sep-10 1:31
Joe Rozario3-Sep-10 1:31 
AnswerRe: How to access public varialbes in C# class Pin
#realJSOP3-Sep-10 1:34
professional#realJSOP3-Sep-10 1:34 
GeneralRe: How to access public varialbes in C# class Pin
Joe Rozario3-Sep-10 1:39
Joe Rozario3-Sep-10 1:39 
AnswerRe: How to access public varialbes in C# class Pin
AspDotNetDev3-Sep-10 11:50
protectorAspDotNetDev3-Sep-10 11:50 
GeneralRe: How to access public varialbes in C# class Pin
Ravi Bhavnani5-Sep-10 19:02
professionalRavi Bhavnani5-Sep-10 19:02 
AnswerRe: How to access public varialbes in C# class Pin
Pete O'Hanlon3-Sep-10 1:42
mvePete O'Hanlon3-Sep-10 1:42 
GeneralRe: How to access public varialbes in C# class Pin
Joe Rozario3-Sep-10 18:38
Joe Rozario3-Sep-10 18:38 
GeneralRe: How to access public varialbes in C# class Pin
Pete O'Hanlon3-Sep-10 21:43
mvePete O'Hanlon3-Sep-10 21:43 
QuestionAvoiding exceptions in socket programming Pin
Rob Philpott3-Sep-10 0:49
Rob Philpott3-Sep-10 0:49 
AnswerRe: Avoiding exceptions in socket programming Pin
Not Active3-Sep-10 1:06
mentorNot Active3-Sep-10 1:06 
GeneralRe: Avoiding exceptions in socket programming Pin
Rob Philpott3-Sep-10 1:10
Rob Philpott3-Sep-10 1:10 
GeneralRe: Avoiding exceptions in socket programming Pin
#realJSOP3-Sep-10 1:36
professional#realJSOP3-Sep-10 1:36 
AnswerRe: Avoiding exceptions in socket programming Pin
DaveyM693-Sep-10 1:35
professionalDaveyM693-Sep-10 1:35 
QuestionToolStripMenuItem.Visible always returns false? (Clarified hopefully) Pin
AussieLew2-Sep-10 17:53
AussieLew2-Sep-10 17:53 

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.