Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
GeneralRe: Datagrid + option to open word doc Pin
chandtec27-Feb-05 20:40
chandtec27-Feb-05 20:40 
GeneralRe: Datagrid + option to open word doc Pin
Anonymous27-Feb-05 3:15
Anonymous27-Feb-05 3:15 
GeneralRe: Datagrid + option to open word doc Pin
sreejith ss nair27-Feb-05 16:40
sreejith ss nair27-Feb-05 16:40 
GeneralPerfect coders wanted (freelancers) Pin
PavelMenshikov25-Feb-05 23:43
PavelMenshikov25-Feb-05 23:43 
GeneralRe: Perfect coders wanted (freelancers) Pin
sreejith ss nair26-Feb-05 1:21
sreejith ss nair26-Feb-05 1:21 
GeneralRe: Perfect coders wanted (freelancers) Pin
Colin Angus Mackay26-Feb-05 9:26
Colin Angus Mackay26-Feb-05 9:26 
GeneralRe: Perfect coders wanted (freelancers) Pin
sreejith ss nair26-Feb-05 20:14
sreejith ss nair26-Feb-05 20:14 
GeneralFileSystemWatcher Delay Pin
Zishan Haider25-Feb-05 22:52
Zishan Haider25-Feb-05 22:52 
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

GeneralRe: FileSystemWatcher Delay Pin
leppie25-Feb-05 23:36
leppie25-Feb-05 23:36 
GeneralRe: FileSystemWatcher Delay Pin
Anonymous26-Feb-05 21:08
Anonymous26-Feb-05 21:08 
QuestionHow do I... Pin
KORCARI25-Feb-05 22:13
KORCARI25-Feb-05 22:13 
AnswerRe: How do I... Pin
leppie25-Feb-05 23:41
leppie25-Feb-05 23:41 
AnswerRe: How do I... Pin
sreejith ss nair26-Feb-05 1:30
sreejith ss nair26-Feb-05 1:30 
Generalpassing textbox values to an array Pin
la vie25-Feb-05 19:05
la vie25-Feb-05 19:05 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 0:03
Radgar26-Feb-05 0:03 
GeneralRe: passing textbox values to an array Pin
la vie26-Feb-05 7:11
la vie26-Feb-05 7:11 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 9:19
Radgar26-Feb-05 9:19 
GeneralRe: passing textbox values to an array Pin
la vie26-Feb-05 9:35
la vie26-Feb-05 9:35 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 10:42
Radgar26-Feb-05 10:42 
GeneralRe: passing textbox values to an array Pin
la vie26-Feb-05 14:58
la vie26-Feb-05 14:58 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 16:13
Radgar26-Feb-05 16:13 
QuestionHow to get the value from keyboard? Pin
Johny Ng25-Feb-05 14:38
Johny Ng25-Feb-05 14:38 
AnswerRe: How to get the value from keyboard? Pin
S. Senthil Kumar25-Feb-05 15:07
S. Senthil Kumar25-Feb-05 15:07 
AnswerRe: How to get the value from keyboard? Pin
sardonicus26-Feb-05 12:37
sardonicus26-Feb-05 12:37 
Questionhow to convert a float array (float[]) to a byte array Pin
xuguoqing25-Feb-05 14:00
xuguoqing25-Feb-05 14:00 

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.