PC Review


Reply
Thread Tools Rate Thread

Detecting file changes just like Visual Studio

 
 
desmcc@gmail.com
Guest
Posts: n/a
 
      30th Nov 2005
I want to mimic the functionality of Visual studio where if an opened
file is modified outside of the IDE, the user is prompted if they wish
to reload the file(s). What is the best approach to do this. I have
read different postings about the FileSystemWatcher class where there
seems to be plenty of problems and hacks required when using this class
(e.g. duplicate notifications) etc.
What should I use - FileSystemWatcher or some alternative ?

thanks,
Des.

 
Reply With Quote
 
 
 
 
Arild Bakken
Guest
Posts: n/a
 
      30th Nov 2005
Check out the "System.IO.FileSystemWatcher" class.


Arild

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I want to mimic the functionality of Visual studio where if an opened
> file is modified outside of the IDE, the user is prompted if they wish
> to reload the file(s). What is the best approach to do this. I have
> read different postings about the FileSystemWatcher class where there
> seems to be plenty of problems and hacks required when using this class
> (e.g. duplicate notifications) etc.
> What should I use - FileSystemWatcher or some alternative ?
>
> thanks,
> Des.
>



 
Reply With Quote
 
Arild Bakken
Guest
Posts: n/a
 
      30th Nov 2005
Sorry... as I reread the post I see it's not a startingpoint you're looking
for. I've never used the FileSystemWatcher and wasn't aware that there were
any problems with it.

If you really want to go do it your own way, check out the Windows APIs
FindFirstChangeNotification and it's related functions.


Arild

"Arild Bakken" <arildb_@hotmail.com> wrote in message
news:%(E-Mail Removed)...
> Check out the "System.IO.FileSystemWatcher" class.
>
>
> Arild
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I want to mimic the functionality of Visual studio where if an opened
>> file is modified outside of the IDE, the user is prompted if they wish
>> to reload the file(s). What is the best approach to do this. I have
>> read different postings about the FileSystemWatcher class where there
>> seems to be plenty of problems and hacks required when using this class
>> (e.g. duplicate notifications) etc.
>> What should I use - FileSystemWatcher or some alternative ?
>>
>> thanks,
>> Des.
>>

>
>



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      30th Nov 2005
The FileSystemWatcher works fine. I've never had any problems with it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I want to mimic the functionality of Visual studio where if an opened
> file is modified outside of the IDE, the user is prompted if they wish
> to reload the file(s). What is the best approach to do this. I have
> read different postings about the FileSystemWatcher class where there
> seems to be plenty of problems and hacks required when using this class
> (e.g. duplicate notifications) etc.
> What should I use - FileSystemWatcher or some alternative ?
>
> thanks,
> Des.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy Microsoft C# .NET 0 11th Feb 2009 04:22 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET 4 17th May 2007 07:56 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET Framework 1 14th May 2007 08:05 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft C# .NET 0 14th May 2007 07:45 PM
Detecting .Net framework version for use in visual studio install Devon Microsoft Dot NET Framework 0 12th Jan 2004 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 AM.