all groups > visual studio .net ide > may 2005 >
You're in the

visual studio .net ide

group:

How to reload externally modified file using AddIn



How to reload externally modified file using AddIn Gerrit Beuze
5/26/2005 12:00:00 AM
visual studio .net ide: Hi all,

After a file has been modified by an external tool,
VS2003 displays something like "File has changed, reload Yes/No/All".
Is there a way to reload the file using the extensibility objects to avoid
this dialog?

I looked in the obvious places:
The Document object does not have a Reload method
and the TextDocument and ItemOperations objects netiher.

I could of course use the TextSelection and EditPoint objects to
Delete the entire document and then re-insert the text from file,
but I thought there might be an easier way


Thanks in advance,

Gerrit Beuze
ModelMaker Tools

Re: How to reload externally modified file using AddIn Carlos J. Quintero [.NET MVP]
5/26/2005 12:00:00 AM
Although there is no reload method, you can close the document without
saving changes, modify the file with the external tool, and open it again in
the IDE.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Gerrit Beuze" <gerrit[at]modelmaker[dot]demon[dot]nl> escribió en el
mensaje news:u3HufCdYFHA.1868@TK2MSFTNGP14.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button