Click here to Skip to main content
15,914,014 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralEXTRA new news EXTRA, Read this Please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Hamed Musavi1-Mar-05 15:35
Hamed Musavi1-Mar-05 15:35 
GeneralRe: EXTRA new news EXTRA, Read this Please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
DavidNohejl2-Mar-05 9:34
DavidNohejl2-Mar-05 9:34 
GeneralRe: why .net...? Pin
zuschauer19801-Mar-05 0:12
zuschauer19801-Mar-05 0:12 
GeneralRe: why .net...? Pin
Hamed Musavi1-Mar-05 15:26
Hamed Musavi1-Mar-05 15:26 
QuestionWebRequest Problem??? Pin
Small Rat26-Feb-05 7:00
Small Rat26-Feb-05 7:00 
GeneralArray Pin
Truong D. Toan26-Feb-05 6:41
Truong D. Toan26-Feb-05 6:41 
GeneralPrinterSettings.Collate doesn't work?! Pin
klawipo26-Feb-05 0:30
klawipo26-Feb-05 0:30 
GeneralFileSystemWatcher Delay Pin
Zishan Haider25-Feb-05 21:18
Zishan Haider25-Feb-05 21:18 
I have an application that communicates with the server program through a shared text file, located at a network directory. The server writes to the text file which my application reads. I am using FileSystemWatcher to monitor this file.

Now when server writes to the file, change event in my application fires after 2 or 3 seconds. However when I manually change this file and save it, it acts the ideal way. I want to reduce this time delay as this should act like realtime system.

My C# code goes like this :

-------------------------------------------------------------------

public MyWatcherClass()
{
watcher = new FileSystemWatcher();
this.watcher.Path = this.MyNetworkDrive;
this.watcher.NotifyFilter = NotifyFilters.Size;
this.watcher.Filter = this.MyTextFile;
this.watcher.Changed += new FileSystemEventHandler(OnChanged);
this.watcher.EnableRaisingEvents = true;
}

-------------------------------------------------------------------

What am I missing?

Thanks in advance
GeneralGetting a "friendly" name from an ImageFormat Pin
Jon Sagara25-Feb-05 14:18
Jon Sagara25-Feb-05 14:18 
GeneralRedistributable Package Pin
Horsy25-Feb-05 11:39
Horsy25-Feb-05 11:39 
GeneralRe: Redistributable Package Pin
Horsy25-Feb-05 13:02
Horsy25-Feb-05 13:02 
GeneralRe: Redistributable Package Pin
MitchellBaldwin26-Feb-05 4:05
MitchellBaldwin26-Feb-05 4:05 
GeneralJscript.net assembly with a strong name Pin
stefanov.sm24-Feb-05 22:55
stefanov.sm24-Feb-05 22:55 
GeneralMSIL Pin
Member 94283424-Feb-05 18:50
Member 94283424-Feb-05 18:50 
GeneralRe: MSIL Pin
S. Senthil Kumar25-Feb-05 3:50
S. Senthil Kumar25-Feb-05 3:50 
GeneralRe: MSIL Pin
leppie26-Feb-05 18:55
leppie26-Feb-05 18:55 
General"Look In" history Pin
nkale24-Feb-05 15:39
nkale24-Feb-05 15:39 
GeneralOpenFileDialog bug problem .net Pin
foxjazz224-Feb-05 11:19
foxjazz224-Feb-05 11:19 
GeneralRe: OpenFileDialog bug problem .net Pin
klawipo26-Feb-05 1:02
klawipo26-Feb-05 1:02 
GeneralDLL Pin
Dwayner7924-Feb-05 7:20
Dwayner7924-Feb-05 7:20 
GeneralRe: DLL Pin
klawipo26-Feb-05 0:45
klawipo26-Feb-05 0:45 
GeneralAdding to the TextBox context menu Pin
MitchellBaldwin24-Feb-05 6:35
MitchellBaldwin24-Feb-05 6:35 
GeneralRe: Adding to the TextBox context menu Pin
pankajupadhyay2930-Nov-09 20:17
professionalpankajupadhyay2930-Nov-09 20:17 
GeneralProcess memory not right Pin
Turok_4_2_024-Feb-05 4:12
Turok_4_2_024-Feb-05 4:12 
GeneralRe: Process memory not right Pin
S. Senthil Kumar24-Feb-05 8:47
S. Senthil Kumar24-Feb-05 8:47 

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.